@Test
public void testCheckGroupMembershipQuota() {

    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setGroup(2).setGroupMember(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    Mockito.when(con.countGroupMembers("athenz", "readers")).thenReturn(1);
    // this should complete successfully
    quotaCheck.checkGroupMembershipQuota(con, "athenz", "readers", "caller");
}