@Test
public void test_is_not_allowed() {

    when(repository.getProject("projectId")).thenReturn(new Project("projectId", "127.0.0.2"));
    get("/api/project/isDownloadAllowed/projectId").should().respond(403);
}