@Test
public void getModuleOrganization() throws IOException {

    final String moduleName = "module";
    final String moduleVersion = "1.0.0-SNAPSHOT";
    final Organization organization = DataModelFactory.createOrganization("organizationTest");
    stubFor(get(urlMatching("/" + ServerAPI.MODULE_RESOURCE + "/" + moduleName + "/" + moduleVersion + ServerAPI.GET_ORGANIZATION))
            .willReturn(aResponse()
                    .withHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON)
                    .withBody(JsonUtils.serialize(organization))
                    .withStatus(Status.OK.getStatusCode())));
    Exception exception = null;
    Organization receivedOrganization = null;
    try{
        receivedOrganization = client.getModuleOrganization(moduleName,moduleVersion);
    }catch (Exception e) {
        exception = e;
    }
    assertNull(exception);
    assertNotNull(receivedOrganization);
    assertEquals(organization, receivedOrganization);
}