@Test
public void testCheckEntityQuota() {

    
    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setEntity(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    Mockito.when(con.countEntities("athenz")).thenReturn(1);
    
    Entity entity = new Entity();
    
    // this should be successful - no exceptions
    quotaCheck.checkEntityQuota(con, "athenz", entity, "caller");
}