@Test(expected = WebApplicationException.class)
public void testGetReferencesAsUnauthorized() throws Exception {

	File file1 = fileService.createFile("f1", "jpg", "f1", 99);
	Page page1 = new Page("p1");
	page1.setFile(file1);
	page1 = pageService.createPage(page1);
	// switch user
	requestMock = new HttpServletRequestMock(simpleUser2);
	pageService.request = requestMock;
	pageService.getReferences(file1.getId());
}