### Question:
IdCacheBlock extends CacheBlockBase { public boolean isEntryExpirationEnabled() { return ENTRY_EXPIRATION_ENABLED_FLAG; } IdCacheBlock(String entryDN, boolean validEntry);  IdCacheBlock(String entryDN, String orgDN, boolean validEntry); Set getFullyQualifiedNames(); void setFullyQualifiedNames(Set fqn); boolean isEntryExpirationEnabled(); long getUserEntryExpirationTime(); long getDefaultEntryExpirationTime(); Debug getDebug();  }### Answer:
@Test public void clearCacheTest() throws Exception { IdCacheBlock cb = new IdCacheBlock(ENTRY_DN, true); Assert.assertFalse(cb.isEntryExpirationEnabled()); cb.putAttributes(PRINCIPAL_DN, attributes, null, true, false); Assert.assertTrue(cb.hasCache(PRINCIPAL_DN)); Assert.assertTrue(cb.hasCompleteSet(PRINCIPAL_DN)); cb.clear(); Assert.assertFalse(cb.hasCache(PRINCIPAL_DN)); Assert.assertFalse(cb.hasCompleteSet(PRINCIPAL_DN)); Map cachedAttributes = cb.getAttributes(PRINCIPAL_DN, false); Assert.assertTrue(cachedAttributes.isEmpty()); }