@Test
public void testListTables() throws IOException {

  Path basePath = setupTest(conf, SESSION.getUser(), SpreadsheetMetadataTest.class);
  SpreadsheetMetadata spreadsheetMetadata = new SpreadsheetMetadata(ugi, conf, basePath, SPREADSHEETS, useFileCache,
      true);
  List<SchemaTableName> listTables = spreadsheetMetadata.listTables(SESSION, SCHEMA_NAME);
  assertEquals(2, listTables.size());
  List<String> tables = new ArrayList<String>();
  for (SchemaTableName schemaTableName : listTables) {
    assertEquals(SCHEMA_NAME, schemaTableName.getSchemaName());
    tables.add(schemaTableName.getTableName());
  }
  Collections.sort(tables);
  assertEquals("multiple_types_per_column", tables.get(0));
  assertEquals("simple_sheet", tables.get(1));
}