@Test
public void getALicenseThatDoesNotExist(){

    final RepositoryHandler repositoryHandler = mock(RepositoryHandler.class);
    final LicenseHandler handler = new LicenseHandler(repositoryHandler);
    WebApplicationException exception = null;
    try {
        handler.getLicense("doesNotExist");
    }catch (WebApplicationException e){
        exception = e;
    }
    assertNotNull(exception);
    Assert.assertEquals(Response.Status.NOT_FOUND.getStatusCode(), exception.getResponse().getStatus());
}