### Question:
IndexMeta { public IndexMeta() { } IndexMeta(); List<ColumnMeta> getValues(); void setValues(List<ColumnMeta> values); boolean isNonUnique(); void setNonUnique(boolean nonUnique); String getIndexQualifier(); void setIndexQualifier(String indexQualifier); String getIndexName(); void setIndexName(String indexName); short getType(); void setType(short type); String getAscOrDesc(); void setAscOrDesc(String ascOrDesc); int getCardinality(); void setCardinality(int cardinality); int getOrdinalPosition(); void setOrdinalPosition(int ordinalPosition); IndexType getIndextype(); void setIndextype(IndexType indextype); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testIndexMeta() { IndexMeta indexMeta = new IndexMeta(); indexMeta.setValues(Lists.newArrayList()); Assertions.assertNotNull(indexMeta.toString()); Assertions.assertEquals(indexMeta, indexMeta); Assertions.assertEquals(indexMeta.hashCode(), indexMeta.hashCode()); Assertions.assertNotEquals(indexMeta, ""); IndexMeta other = new IndexMeta(); other.setValues(Lists.newArrayList(new ColumnMeta())); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setNonUnique(true); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setIndexQualifier(""); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setIndexName(""); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setType((short)1); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); indexMeta.setIndextype(IndexType.PRIMARY); other.setIndextype(IndexType.NORMAL); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setAscOrDesc(""); other.setIndextype(IndexType.NORMAL); indexMeta.setIndextype(IndexType.NORMAL); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setOrdinalPosition(1); other.setIndextype(IndexType.NORMAL); indexMeta.setIndextype(IndexType.NORMAL); Assertions.assertNotEquals(indexMeta, other); other = new IndexMeta(); other.setIndextype(IndexType.NORMAL); indexMeta.setIndextype(IndexType.NORMAL); Assertions.assertEquals(indexMeta, other); }