TableMeta implements ProtoObject<CatalogProtos.TableProto>, GsonObject, Cloneable { public boolean equals(Object object) { if(object instanceof TableMeta) { TableMeta other = (TableMeta) object; boolean eq = this.getStoreType().equals(other.getStoreType()); eq = eq && this.getOptions().equals(other.getOptions()); return eq; } return false; } private  TableMeta();  TableMeta(String storeType, KeyValueSet options);  TableMeta(TableProto proto); String getStoreType(); void setOptions(KeyValueSet options); void putOption(String key, String val); boolean containsOption(String key); String getOption(String key); String getOption(String key, String defaultValue); KeyValueSet getOptions(); Map<String,String> toMap(); boolean equals(Object object); int hashCode(); @Override Object clone(); String toString(); TableProto getProto(); @Override String toJson(); void mergeProtoToLocal();  }
@Test public void testEqualsObject() { Schema schema2 = new Schema(); schema2.addColumn("name", Type.BLOB); schema2.addColumn("addr", Type.TEXT); TableMeta meta2 = CatalogUtil.newTableMeta("CSV"); assertTrue(meta.equals(meta2)); assertNotSame(meta, meta2); }