@Test
public void testCheckServicePublicKeyQuota() {

    
    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setService(2).setServiceHost(2).setPublicKey(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    Mockito.when(con.countPublicKeys("athenz", "storage")).thenReturn(1);
    
    // this should be successful - no exceptions
    
    quotaCheck.checkServiceIdentityPublicKeyQuota(con, "athenz", "storage", "caller");
}