@Test
public void testCheckPolicyAssertionQuota() {

    
    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setPolicy(2).setAssertion(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    Mockito.when(con.countAssertions("athenz", "readers")).thenReturn(1);
    // this should be successful - no exceptions
    quotaCheck.checkPolicyAssertionQuota(con, "athenz", "readers", "caller");
}