title: JUnit: Run one test with different configurations
body: <p>I have 2 test methods, and i need to run them with different configurations</p>
  
  <pre><code>myTest() {
      .....
      .....
  }
  
  @Test
  myTest_c1() {
      setConf1();
      myTest();
  }
  
  @Test
  myTest_c2() {
      setConf2();
      myTest();
  }
  
  //------------------
  
  nextTest() {
      .....
      .....
  }
  
  @Test
  nextTest_c1() {
      setConf1();
      nextTest();
  }
  
  @Test
  nextTest_c2() {
      setConf2();
      nextTest();
  }
  </code></pre>
  
  <p>I cannot run them both from one config (as in code below) because i need separate methods for tosca execution.</p>
  
  <pre><code>@Test
  tests_c1() {
      setConf1();
      myTest()
      nextTest();
  }
  </code></pre>
  
  <p>I don't want to write those 2 methods to run each test, how can i solve this?</p>
  
  <p>First i thought to write custom annotation</p>
  
  <pre><code>@Test
  @RunWithBothConf
  myTest() {
     ....
  }
  </code></pre>
  
  <p>But maybe there are any other solutions for this? </p>