@Test
public void getModule() {

    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());
    final ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
    final Module results = response.getEntity(Module.class);
    assertNotNull(results);
    assertEquals(dbModule.getName(), results.getName());
    assertEquals(dbModule.getVersion(), results.getVersion());
}