@Test
public void testGetPages() throws Exception {

	// simulate user with dbadmin priviledges
	doReturn(true).when(dbService).isDBAdmin();
	assertEquals(0, dbService.getPages().size());
	pageService.createPage(new Page("p1"));
	assertEquals(1, dbService.getPages().size());
}