title: How to specify separate JVM parameters for junit test classes
body: <p>As mentioned in <a href="https://stackoverflow.com/questions/7579776/how-to-set-jvm-parameters-for-junit-unit-tests">here</a> we can specify JVM parameters for all the test classes in the application.</p>
  
  <pre><code>&lt;plugin&gt;
  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
  &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt;
  &lt;version&gt;2.9&lt;/version&gt;
  &lt;configuration&gt;
      &lt;argLine&gt;-Xmx256M&lt;/argLine&gt;
  &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>But how can we specify that <strong>&lt; argLine ></strong> to specific Java class only ?</p>
  
  <p>This is because i'm testing a java.policy file in a test class and I need to pass it as a JVM parameter before run that test class. But I don't want it (policy file) to be considered to other test classes</p>