@Test
public void testCheckSubDomainQuota() {

    
    QuotaChecker quotaCheck = new QuotaChecker();
    Quota mockQuota = new Quota().setName("athenz")
            .setSubdomain(2);
    ObjectStoreConnection con = Mockito.mock(ObjectStoreConnection.class);
    Mockito.when(con.getQuota("athenz")).thenReturn(mockQuota);
    ArrayList<String> domains = new ArrayList<>();
    domains.add("athenz.one");
    Mockito.when(con.listDomains("athenz.", 0)).thenReturn(domains);
    
    // this should be successful - no exceptions
    
    quotaCheck.checkSubdomainQuota(con, "athenz.quota", "caller");
}