@Test
public void getAnExistingOrganization(){

    final DbOrganization organization = new DbOrganization();
    organization.setName("test");
    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    when(repositoryHandler.getOrganization(organization.getName())).thenReturn(organization);
    final OrganizationHandler handler = new OrganizationHandler(repositoryHandler);
    final DbOrganization gotOrganization = handler.getOrganization(organization.getName());
    assertNotNull(gotOrganization);
    assertEquals(organization, gotOrganization);
    verify(repositoryHandler, times(1)).getOrganization(organization.getName());
}