void () { final FacetManager manager = getFacetManager(); final ModifiableFacetModel model = manager.createModifiableModel(); final MockFacet facet = createFacet(); model.addFacet(facet); model.rename(facet, "newName"); commit(model); assertEquals("newName", assertOneElement(manager.getAllFacets()).getName()); }