void () { final VirtualFile configFile = findFile("config.xml"); final MockFacet facet = createFacet(); facet.addRoot(configFile); assertNull(findFacet(configFile)); addFacet(facet); assertSame(facet, findFacet(configFile)); removeFacet(facet); assertNull(findFacet(configFile)); }