@Test
public void insertRowGridOnly() {

    int setCellInvocations = backgroundDataMock.getUnmodifiableFactMappingValues().size();
    backgroundGridModelSpy.insertRowGridOnly(ROW_INDEX, gridRowMock, backgroundDataMock);
    verify(backgroundGridModelSpy, atLeast(1)).checkSimulation();
    verify(backgroundGridModelSpy, never()).insertRow(eq(ROW_INDEX), eq(gridRowMock));
    verify(backgroundGridModelSpy, times(setCellInvocations)).setCell(anyInt(), anyInt(), isA(Supplier.class));
    reset(backgroundGridModelSpy);
    FactMapping factMappingByIndexMock = mock(FactMapping.class);
    when(factMappingByIndexMock.getClassName()).thenReturn(List.class.getName());
    when(simulationDescriptorMock.getFactMappingByIndex(2)).thenReturn(factMappingByIndexMock);
    backgroundGridModelSpy.insertRowGridOnly(ROW_INDEX, gridRowMock, backgroundDataMock);
    verify(backgroundGridModelSpy, atLeast(1)).checkSimulation();
    verify(backgroundGridModelSpy, never()).insertRow(eq(ROW_INDEX), eq(gridRowMock));
    verify(backgroundGridModelSpy, times(setCellInvocations)).setCell(anyInt(), anyInt(), isA(Supplier.class));
}