void () { createFrameworkConfig("my-config.xml"); createFrameworkConfig("sub-my-config.xml"); final List<? extends DetectedFrameworkDescription> descriptions = detect(); assertEquals(2, descriptions.size()); setupFrameworks(descriptions); final MockFacet facet = assertOneElement(FacetManager.getInstance(myModule).getFacetsByType(MockFacetType.ID)); final Facet subFacet = assertOneElement(FacetManager.getInstance(myModule).getFacetsByType(MockSubFacetType.ID)); assertSame(facet, subFacet.getUnderlyingFacet()); assertEquals("my-config.xml", facet.getConfiguration().getData()); assertEquals("sub-my-config.xml", ((MockFacetConfiguration)subFacet.getConfiguration()).getData()); }