@Test
public void getModuleOrganization() {

    final DbModule dbModule = new DbModule();
    dbModule.setName("moduleTest");
    dbModule.setVersion("1.0.0");
    dbModule.setOrganization(GrapesTestUtils.ORGANIZATION_NAME_4TEST);
    when(repositoryHandler.getModule(dbModule.getId())).thenReturn(dbModule);
    final WebResource resource = client().resource("/" + ServerAPI.MODULE_RESOURCE + "/" + dbModule.getName() + "/" + dbModule.getVersion() + "/" + ServerAPI.ORGANIZATION_RESOURCE);
    final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
    final Organization gotOrganization = response.getEntity(Organization.class);
    assertNotNull(gotOrganization);
    assertEquals(GrapesTestUtils.ORGANIZATION_NAME_4TEST, gotOrganization.getName());
}