@Test
@DatabaseSetup("classpath:dbunit/empty_dataset.xml")
public void testFindTenantAdmins() {

    UUID tenantId = UUIDs.timeBased();
    UUID customerId = UUIDs.timeBased();
    create30Adminsand60Users(tenantId, customerId);
    List<User> tenantAdmins1 = userDao.findTenantAdmins(tenantId, new TextPageLink(20));
    assertEquals(20, tenantAdmins1.size());
    List<User> tenantAdmins2 = userDao.findTenantAdmins(tenantId,
            new TextPageLink(20, null, tenantAdmins1.get(19).getId().getId(), null));
    assertEquals(10, tenantAdmins2.size());
    List<User> tenantAdmins3 = userDao.findTenantAdmins(tenantId,
            new TextPageLink(20, null, tenantAdmins2.get(9).getId().getId(), null));
    assertEquals(0, tenantAdmins3.size());
}