@Test
public void testDeleteUser() throws Exception {

	// simulate user with dbadmin priviledges
	doReturn(true).when(dbService).isDBAdmin();
	doReturn(true).when(userService).isDBAdmin();
	User user = UserUtil.getInstance().getDBUser("u1");
	userService.deleteUser(user.getId());
	assertEquals(0, dbService.getUsers().size());
}