@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));
  }
}