@Test
public void refreshErrorsRow() {

    int expectedCalls = abstractScesimGridModelSpy.getColumnCount();
    FactMappingValue factMappingValue = mock(FactMappingValue.class);
    when(factMappingValue.getStatus()).thenReturn(FactMappingValueStatus.FAILED_WITH_ERROR);
    when(scenarioMock.getFactMappingValue(any(), any())).thenReturn(Optional.empty());
    abstractScesimGridModelSpy.refreshErrorsRow(0);
    verify(gridCellMock, times(expectedCalls)).setErrorMode(false);
    when(scenarioMock.getFactMappingValue(any(), any())).thenReturn(Optional.of(factMappingValue));
    abstractScesimGridModelSpy.refreshErrorsRow(0);
    verify(gridCellMock, times(expectedCalls)).setErrorMode(true);
}