void () { String configData = "data"; ModifiableFacetModel model = getFacetManager().createModifiableModel(); MockFacet mockFacet = new MockFacet(myModule, "mock"); model.addFacet(mockFacet); mockFacet.getConfiguration().setData(configData); commit(model); MockFacet facetByType = getFacetManager().getFacetByType(MockFacetType.ID); assertEquals(configData, facetByType.getConfiguration().getData()); assertSame(mockFacet, facetByType); }