title: Use different Spring test context configuration for different test methods
body: <p>We have a Spring based JUnit test class which is utilizing an inner test context configuration class</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(classes = ServiceTest.Config.class)
  public class ServiceTest {
  
      @Test
      public void someTest() {
      ...
  
      @Configuration
      @PropertySource(value = { "classpath:application.properties" })
      @ComponentScan({ "..." })
      public static class Config {
      ...
  </code></pre>
  
  <p>New functionalities have been recently introduced to the Service class, for which the concerned tests should be added to ServiceTest. However these would also require a different test context configuration class to be created (the internals of the existing Config class are fairly complex and change it to serve both old and new tests seems to be be extremely difficult if possible at all)</p>
  
  <p>Is there a way to achieve that certain test methods in one test class would use one config class and other methods would use another? <code>@ContextConfiguration</code> seems to be applicable only on class level, so solution could be to create another test class for the new tests which would utilize its own context configuration class; but it would mean that the same Service class is being covered via two different test classes</p>