@Test
public void testCheckRoleQuota() {

    
    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setRole(2).setRoleMember(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    Mockito.when(con.countRoles("athenz")).thenReturn(1);
    
    ArrayList<RoleMember> roleMembers = new ArrayList<>();
    roleMembers.add(new RoleMember().setMemberName("user.joe"));
    Role role = new Role().setRoleMembers(roleMembers);
    
    // this should be successful - no exceptions
    quotaCheck.checkRoleQuota(con, "athenz", role, "caller");
}