@Test
public void canBePromoted() throws UnknownHostException {

    final DbModule dbModule = new DbModule();
    dbModule.setName("moduleTest");
    dbModule.setVersion("1.0.0");
    when(repositoryHandler.getModule(dbModule.getId())).thenReturn(dbModule);
    withErrors(PromotionValidation.VERSION_IS_SNAPSHOT);
    final WebResource resource = client().resource("/" + ServerAPI.MODULE_RESOURCE + "/" + dbModule.getName() + "/" + dbModule.getVersion() + ServerAPI.PROMOTION + ServerAPI.GET_FEASIBLE);
    ClientResponse response = resource.accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.OK_200, response.getStatus());
    Boolean results = response.getEntity(Boolean.class);
    assertNotNull(results);
    assertTrue(results);
}