mock the database access with mockito