ScenarioSimulationHasBusyIndicatorDefaultErrorCallback extends HasBusyIndicatorDefaultErrorCallback { @Override public boolean error(final Message message, final Throwable throwable) { CustomBusyPopup.close(); return errorLocal(message, throwable); } ScenarioSimulationHasBusyIndicatorDefaultErrorCallback(HasBusyIndicator view); @Override boolean error(final Message message,
                         final Throwable throwable); void hideBusyIndicator();  }
@Test public void error() { Message messageMock = mock(Message.class); Throwable throwableMock = mock(Throwable.class); scenarioSimulationHasBusyIndicatorDefaultErrorCallback.error(messageMock, throwableMock); verify(scenarioSimulationHasBusyIndicatorDefaultErrorCallback, times(1)).errorLocal(eq(messageMock), eq(throwableMock)); }