@Test
public void testProcessListRequestLimitAndSkipLessThanLimitLeft() {

    
    String domainName = "listrequestlimitskiplessthanlimitleft";
    List<String> adminUsers = new ArrayList<>();
    adminUsers.add("user.user");
    zms.dbService.makeDomain(mockDomRsrcCtx, ZMSTestUtils.makeDomainObject(domainName, "Test Domain", "org",
            true, null, 0, null, 0), adminUsers, null, auditRef);
    
    Role role1 = createRoleObject(domainName,  "role1", null, "user.user", null);
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, "role1",
            role1, auditRef, "unittest");
    Role role2 = createRoleObject(domainName,  "role2", null, "user.user", null);
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, "role2",
            role2, auditRef, "unittest");
    
    Role role3 = createRoleObject(domainName,  "role3", null, "user.user", null);
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, "role3",
            role3, auditRef, "unittest");
    
    Role role4 = createRoleObject(domainName,  "role4", null, "user.user", null);
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, "role4",
            role4, auditRef, "unittest");
    
    Role role5 = createRoleObject(domainName,  "role5", null, "user.user", null);
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, "role5",
            role5, auditRef, "unittest");
    
    List<String> names = new ArrayList<>();
    assertNull(zms.processListRequest(domainName, AthenzObject.ROLE, 2, "role4", names));
    assertEquals(names.size(), 1);
    assertTrue(names.contains("role5"));
    zms.dbService.executeDeleteDomain(mockDomRsrcCtx, domainName, auditRef, "unittest");
}