IndexSchema { public static IndexSchema deserialize(byte[] serializedIndexSchema, String indexName) { checkNotNull(serializedIndexSchema); Verify.isNotNullOrEmpty(indexName); return new IndexSchema(indexName, Util.deserializeAvroObject(serializedIndexSchema, reader)); } IndexSchema(String indexName, List<String> columns, boolean isUnique);   IndexSchema(String indexName, AvroIndexSchema avroIndexSchema); static IndexSchema deserialize(byte[] serializedIndexSchema, String indexName); String getIndexName(); List<String> getColumns(); boolean getIsUnique(); byte[] serialize(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void testDeserializeNullSerializedSchema() { IndexSchema.deserialize(null, INDEX_A); }