@Test
public void testGetTrainingDataIsPassedToTheView() {

    // Given
    int numberClients = 3;
    UseCaseExecutor executor = mock(UseCaseExecutor.class);
    FederatedRepository repository = mock(FederatedRepository.class);
    TrainerView view = mock(TrainerView.class);
    ModelConfiguration modelConfiguration = mock(ModelConfiguration.class);
    UseCaseThreadExecutor threadExecutor = mock(UseCaseThreadExecutor.class);
    // When
    TrainerPresenter cut = new TrainerPresenter(view,
            modelConfiguration,
            repository,
            executor,
            threadExecutor,
            numberClients);
    cut.retrieveData();
    // Then
    Mockito.verify(executor).execute(any(GetTrainingData.class));
}