@Test
public void getModuleDependenciesOnAModuleThatDoesNotExist(){

    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    final DependencyHandler dependencyHandler = new DependencyHandler(repositoryHandler);
    WebApplicationException exception = null;
    try{
        dependencyHandler.getModuleDependencies("doesNotExist", mock(FiltersHolder.class));
    }
    catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
    assertEquals(Response.Status.NOT_FOUND.getStatusCode(), exception.getResponse().getStatus());
}