hbaseMetadata.getSchema(unknownTableId);
}
@Test
public void testLookupTableSchemaValidTableId() {
final TableSchema tableSchema = new TableSchema(COLUMN_SCHEMAS, ImmutableList.<IndexSchema>of());
hbaseMetadata.createTable(TABLE_NAME, tableSchema);
final long tableId = hbaseMetadata.getTableId(TABLE_NAME);
final TableSchema schemaTwo = hbaseMetadata.getSchema(tableId);
assertEquals(1, schemaTwo.getColumns().size());
assertTrue(Iterables.any(schemaTwo.getColumns(), new Predicate<ColumnSchema>() {
@Override
public boolean apply(ColumnSchema input) {
return input.getColumnName().equals(COLUMN_NAME);
}
}));