### Question:
IndexSpecification implements WritableComparable<IndexSpecification> { public String getName() { return Bytes.toString(this.name); } IndexSpecification();  IndexSpecification(String name);  IndexSpecification(byte[] name); String getName(); void addIndexColumn(HColumnDescriptor cf, String qualifier, ValueType type,
      int maxValueLength); void addIndexColumn(HColumnDescriptor cf, String qualifier, ValuePartition vp,
      ValueType type, int maxValueLength); Set<ColumnQualifier> getIndexColumns(); void readFields(DataInput in); void write(DataOutput out); int compareTo(IndexSpecification o); String toString(); boolean equals(Object obj); int hashCode(); ColumnQualifier getLastColumn(); boolean contains(byte[] family); boolean contains(byte[] family, byte[] qualifier); int getTotalValueLength(); long getTTL(); int getMaxVersions();  }### Answer:
@Test public void testGetName() throws Exception { IndexSpecification iSpec = new IndexSpecification("index_name"); assertEquals("Index name not match with acutal index name.", "index_name", iSpec.getName()); iSpec = new IndexSpecification("index_name"); assertEquals("Index name not match with acutal index name.", "index_name", iSpec.getName()); }