void () { final MockFacet facet = createMockFacet("my-config.xml"); final VirtualFile file = createFrameworkConfig("sub-my-config.xml"); final MockFacetConfiguration configuration = assertFrameworkDetectedIn(file); assertEquals("sub-my-config.xml", configuration.getData()); setupFrameworks(detect()); final Facet subFacet = assertOneElement(FacetManager.getInstance(myModule).getFacetsByType(MockSubFacetType.ID)); assertSame(facet, subFacet.getUnderlyingFacet()); }