@Test
public void getAModuleThatDoesNotExist(){

    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    final ModuleHandler handler = new ModuleHandler(repositoryHandler);
    WebApplicationException exception = null;
    try{
        handler.getModule("doesNotExist");
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
    assertEquals(javax.ws.rs.core.Response.Status.NOT_FOUND.getStatusCode(), exception.getResponse().getStatus());
}