### Question:
ColumnType { @Override public boolean equals(Object t) { if (t == null || getClass() != t.getClass()) { return false; } else { ColumnType other = (ColumnType) t; return m_type == other.getType() && Objects.equals(m_typeCode, other.getTypeCode()); } } ColumnType(final int type, final String typeCode); @Override boolean equals(Object t); @Override int hashCode(); int getType(); String getTypeCode();  }### Answer:
@Test public void testEquals() { ColumnType typeBool = new ColumnType(-7, "bool"); ColumnType typeBoolean = new ColumnType(16, "boolean"); ColumnType typeBool2 = new ColumnType(-7, "bool"); assertEquals("Expected bool types are equal", typeBool, typeBool2); assertNotSame("Expected bool and boolean are not equal", typeBool, typeBoolean); }