ScesimModelDescriptor { void removeFactMappingByIndex(int index) { factMappings.remove(index); }  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(expected = IndexOutOfBoundsException.class) public void removeFactMappingByIndex() { int testingIndex = 0; scesimModelDescriptor.addFactMapping(factIdentifier, expressionIdentifier); assertNotNull(scesimModelDescriptor.getFactMappingByIndex(testingIndex)); scesimModelDescriptor.removeFactMappingByIndex(testingIndex); scesimModelDescriptor.getFactMappingByIndex(testingIndex); }