title: Cannot process locations AND classes for context configuration
body: <p>I have wrote following test:</p>
  
  <pre><code>@RunWith(SpringJUnit4ClassRunner.class)
  @ContextConfiguration(locations = {"classpath:META-INF/dataContext.xml"},classes = Configiuration.class)
  @ActiveProfiles("test")
  public class CityDaoImplTest {
  ....
  }
  </code></pre>
  
  <p>I need to use configuration from xml file and from java class bur when I invoke </p>
  
  <p>mvn test I seee following in console:</p>
  
  <pre><code>Tests in error: 
    initializationError(***.CityDaoImplTest): Cannot process locations AND classes for context configuration [ContextConfigurationAttributes@5bb21b69 declaringClass = '***.CityDaoImplTest', classes = '{***.Configiuration}', locations = '{classpath:META-INF/dataContext.xml}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader']; configure one or the other, but not both.
  </code></pre>
  
  <p>How to fix it without rewriting configuration?</p>