@Test
public void removeFactMappingByIndex() {

    assertEquals(FACT_MAPPINGS, abstractScesimModelSpy.scesimModelDescriptor.getFactMappings().size());
    final FactMapping factMappingByIndex = abstractScesimModelSpy.scesimModelDescriptor.getFactMappingByIndex(2);
    abstractScesimModelSpy.removeFactMappingByIndex(2);
    verify(abstractScesimModelSpy, times(1)).clearDatas(eq(factMappingByIndex));
    assertEquals(FACT_MAPPINGS - 1, abstractScesimModelSpy.scesimModelDescriptor.getFactMappings().size());
    assertFalse(abstractScesimModelSpy.scesimModelDescriptor.getFactMappings().contains(factMappingByIndex));
}