@Test
public void getModuleDependencyReport() {

    final DbModule dbModule = new DbModule();
    dbModule.setName("moduleTest");
    dbModule.setVersion("1.0.0");
    when(repositoryHandler.getModule(dbModule.getId())).thenReturn(dbModule);
    final WebResource resource = client().resource("/" + ServerAPI.MODULE_RESOURCE + "/" + dbModule.getName() + "/" + dbModule.getVersion() + ServerAPI.GET_DEPENDENCIES + ServerAPI.GET_REPORT);
    final ClientResponse response = resource
            .queryParam(ServerAPI.SCOPE_COMPILE_PARAM, "true")
            .queryParam(ServerAPI.SHOW_THIRPARTY_PARAM, "true")
            .accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
}