@Test
public void getPromotionStatusReport2NoLongerAvailable() {

    final DbModule dbModule = new DbModule();
    dbModule.setName("moduleTest");
    dbModule.setVersion("1.0.0-SNAPSHOT");
    when(repositoryHandler.getModule(dbModule.getId())).thenReturn(dbModule);
    final WebResource resource = client().resource("/" + ServerAPI.MODULE_RESOURCE + "/" + dbModule.getName() + "/" + dbModule.getVersion() + ServerAPI.PROMOTION + "/report2");
    final ClientResponse response = resource
            .accept(MediaType.APPLICATION_JSON).get(ClientResponse.class);
    assertNotNull(response);
    assertEquals(HttpStatus.NOT_FOUND_404, response.getStatus());
}