TableSchema { public void addIndices(Collection<IndexSchema> indices) { checkNotNull(indices); for (IndexSchema entry : indices) { this.indices.add(entry); avroTableSchema.getIndices().put(entry.getIndexName(), entry.getAvroValue()); if (entry.getIsUnique()) { uniqueIndexCount++; } } } TableSchema(Collection<ColumnSchema> columns, Collection<IndexSchema> indices); private  TableSchema(AvroTableSchema avroTableSchema); static TableSchema deserialize(byte[] serializedTableSchema); TableSchema schemaCopy(); byte[] serialize(); Collection<ColumnSchema> getColumns(); Collection<IndexSchema> getIndices(); void addIndices(Collection<IndexSchema> indices); void removeIndex(String indexName); boolean hasIndices(); boolean hasUniqueIndices(); ColumnSchema getColumnSchema(String columnName); IndexSchema getIndexSchema(String indexName); String getAutoIncrementColumn(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test(expected = NullPointerException.class) public void testAddIndicesInvalidIndices() { tableSchema.addIndices(null); }