void () { FacetInfo f1 = create(); FacetInfo f2 = create(); FacetInfo f3 = create(); assertOrderedEquals(myModel.getTopLevelFacets(), f1, f2, f3); assertTrue(myModel.getChildren(f1).isEmpty()); assertTrue(myModel.getChildren(f2).isEmpty()); assertTrue(myModel.getChildren(f3).isEmpty()); assertNull(myModel.getParent(f1)); assertNull(myModel.getParent(f2)); assertNull(myModel.getParent(f3)); assertTrue(myModel.hasFacetOfType(null, MockFacetType.ID)); assertFalse(myModel.hasFacetOfType(f1, MockFacetType.ID)); assertSame(f2, myModel.findNearestFacet(f1)); assertSame(f3, myModel.findNearestFacet(f2)); assertSame(f2, myModel.findNearestFacet(f3)); myModel.removeFacetInfo(f2); assertOrderedEquals(myModel.getTopLevelFacets(), f1, f3); assertSame(f3, myModel.findNearestFacet(f1)); assertSame(f1, myModel.findNearestFacet(f3)); myModel.removeFacetInfo(f1); assertOrderedEquals(myModel.getTopLevelFacets(), f3); assertNull(myModel.findNearestFacet(f3)); }