Can @ContextConfiguration in a custom annotation be merged?
<p>I am working on custom Spring Boot starters. In a test starter what I wanted do to is to implement a composed annotation, which would add additional <code>@Configuration</code> classes to the <code>ApplicationContext</code> (and possibly use this annotation in a <code>TestExecutionListener</code>). ex:</p>

<pre class="lang-java prettyprint-override"><code>@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@ContextConfiguration(classes = AdditionalTestConfiguration.class)
public @interface ComposedAnnotation {
}
</code></pre>

<p>And use that in my Spring Boot integration test:</p>

<pre class="lang-java prettyprint-override"><code>@RunWith(SpringJUnit4ClassRunner.class)
@WebIntegrationTest
@SpringApplicationConfiguration(Application.class)
@ComposedAnnotation
public class SomeTest {
}
</code></pre>

<p>No inheritance is involved. Unfortunately, it does not seem to work. I doubt it's a Spring Boot thing, rather Spring testing framework itself.</p>

<p>Is there any way I can achieve expected result?</p>