public QuotaCounts negation() {
    QuotaCounts ret = new QuotaCounts.Builder().quotaCount(this).build();
    ret.nsSsCounts = modify(ret.nsSsCounts, ec -> ec.negation());
    ret.tsCounts = modify(ret.tsCounts, ec -> ec.negation());
    return ret;
  }
@Test
  public void testNegation() throws Exception {
    QuotaCounts qc = new QuotaCounts.Builder()
        .nameSpace(HdfsConstants.QUOTA_RESET)
        .storageSpace(HdfsConstants.QUOTA_RESET)
        .typeSpaces(HdfsConstants.QUOTA_RESET).build();
    qc = qc.negation();
    assertEquals(1, qc.getNameSpace());
    assertEquals(1, qc.getStorageSpace());
    for (StorageType t : StorageType.values()) {
      assertEquals(1, qc.getTypeSpace(t));
    }
  }