### Question:
BlockCacheColumnFamilySummary implements Writable, Comparable<BlockCacheColumnFamilySummary> { @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; BlockCacheColumnFamilySummary other = (BlockCacheColumnFamilySummary) obj; if (columnFamily == null) { if (other.columnFamily != null) return false; } else if (!columnFamily.equals(other.columnFamily)) return false; if (table == null) { if (other.table != null) return false; } else if (!table.equals(other.table)) return false; return true; } BlockCacheColumnFamilySummary();  BlockCacheColumnFamilySummary(String table, String columnFamily); String getTable(); void setTable(String table); String getColumnFamily(); void setColumnFamily(String columnFamily); int getBlocks(); void setBlocks(int blocks); long getHeapSize(); void incrementBlocks(); void incrementHeapSize(long heapSize); void setHeapSize(long heapSize); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); static BlockCacheColumnFamilySummary createFromStoreFilePath(Path path); @Override int compareTo(BlockCacheColumnFamilySummary o); static BlockCacheColumnFamilySummary create(BlockCacheColumnFamilySummary e);  }### Answer:
@Test public void testEquals() { BlockCacheColumnFamilySummary e1 = new BlockCacheColumnFamilySummary(); e1.setTable("table1"); e1.setColumnFamily("cf1"); BlockCacheColumnFamilySummary e2 = new BlockCacheColumnFamilySummary(); e2.setTable("table1"); e2.setColumnFamily("cf1"); assertEquals("bcse", e1, e2); }