@Test
public void setupPopupPresenterWithScrollFailedWithError() {

    when(elementMock.getScrollTop()).thenReturn(SCROLL_TOP);
    when(elementMock.getScrollLeft()).thenReturn(SCROLL_LEFT);
    when(factMappingValueMock.getStatus()).thenReturn(FactMappingValueStatus.FAILED_WITH_ERROR);
    mouseMoveHandler.setupPopupPresenter(factMappingValueMock, ROW_INDEX, COLUMN_INDEX, DX, DY, PopoverView.Position.RIGHT);
    verify(errorReportPopupPresenterMock, times(1)).setup(
            eq(ScenarioSimulationEditorConstants.INSTANCE.errorReason()),
            eq(ScenarioSimulationEditorConstants.INSTANCE.errorPopoverMessageFailedWithError(RAW_VALUE, ERROR_VALUE)),
            eq(ScenarioSimulationEditorConstants.INSTANCE.keep()),
            eq(ScenarioSimulationEditorConstants.INSTANCE.apply()),
            isA(Command.class),
            eq(DX),
            eq(DY),
            eq(PopoverView.Position.RIGHT));
}