@Test
public void testCollectStatistics() throws Exception {

    // given
    OrganizationWrapper org = mock(OrganizationWrapper.class);
    when(org.listMembers()).thenReturn(mockList(GHUser.class, 5));
    when(org.listTeams()).thenReturn(mockList(GHTeam.class, 4));
    when(org.listRepositories()).thenReturn(emptyList());
    // TODO add more behavior and more assertions
    when(org.getLogin()).thenReturn("myLogin");
    // when
    Statistics statistics = task.collectStatistics(org);
    // then
    assertThat(statistics.getPublicProjectCount(), equalTo(0));
    assertThat(statistics.getMembersCount(), equalTo(5));
    assertThat(statistics.getTeamsCount(), equalTo(4));
    assertThat(statistics.getOrganizationName(), equalTo("myLogin"));
}