ScesimModelDescriptor { public Set<FactIdentifier> getFactIdentifiers() { return factMappings.stream().map(FactMapping::getFactIdentifier).collect(Collectors.toSet()); }  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 getFactIdentifiers() { scesimModelDescriptor.addFactMapping(factIdentifier, expressionIdentifier); final Set<FactIdentifier> retrieved = scesimModelDescriptor.getFactIdentifiers(); assertNotNull(retrieved); assertEquals(1, retrieved.size()); assertEquals(factIdentifier, retrieved.iterator().next()); }