ScesimModelDescriptor { void removeFactMapping(FactMapping toRemove) { factMappings.remove(toRemove); }  List<FactMapping> getUnmodifiableFactMappings(); Set<FactIdentifier> getFactIdentifiers(); List<FactMapping> getFactMappings(); void moveFactMapping(int oldIndex, int newIndex); FactMapping getFactMappingByIndex(int index); int getIndexByIdentifier(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier); List<FactMapping> getFactMappingsByFactName(String factName); Optional<FactMapping> getFactMapping(FactIdentifier factIdentifier, ExpressionIdentifier ei); FactMapping addFactMapping(int index, FactMapping toClone); FactMapping addFactMapping(FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier); FactMapping addFactMapping(String factAlias, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier); FactMapping addFactMapping(int index, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier); FactMapping addFactMapping(int index, String factAlias, FactIdentifier factIdentifier, ExpressionIdentifier expressionIdentifier); void clear();  }
@Test public void removeFactMapping() { FactMapping retrieved = scesimModelDescriptor.addFactMapping(factIdentifier, expressionIdentifier); assertTrue(scesimModelDescriptor.getUnmodifiableFactMappings().contains(retrieved)); scesimModelDescriptor.removeFactMapping(retrieved); assertFalse(scesimModelDescriptor.getUnmodifiableFactMappings().contains(retrieved)); }