@Test
public void refreshErrorsTest() {

    int expectedCalls = abstractScesimGridModelSpy.getRowCount() * abstractScesimGridModelSpy.getColumnCount();
    abstractScesimGridModelSpy.refreshErrors();
    verify(gridCellMock, times(expectedCalls)).setErrorMode(eq(true));
    when(factMappingValueMock.getStatus()).thenReturn(FactMappingValueStatus.SUCCESS);
    abstractScesimGridModelSpy.refreshErrors();
    verify(gridCellMock, times(expectedCalls)).setErrorMode(eq(false));
}