@Test
public void testNewTableName() throws Exception {

  TableCache tableCache = new TableCache(schemaManager, OVERRIDING_DATABASE_NAME);
  String newTable = "new_table";
  when(schemaManager.getTableColumns(DATABASE_NAME, TABLE_NAME)).thenReturn(TABLE_COLUMNS);
  List<ColumnDataType> columnTypes =
      Arrays.asList(
          ColumnDataType.TINY, ColumnDataType.STRING, ColumnDataType.FLOAT, ColumnDataType.LONG);
  tableCache.addOrUpdate(TABLE_ID, TABLE_NAME, DATABASE_NAME, columnTypes);
  verify(schemaManager, times(1)).getTableColumns(DATABASE_NAME, TABLE_NAME);
  when(schemaManager.getTableColumns(DATABASE_NAME, newTable)).thenReturn(TABLE_COLUMNS_UPDATED);
  columnTypes = Arrays.asList(ColumnDataType.TINY, ColumnDataType.STRING, ColumnDataType.FLOAT);
  tableCache.addOrUpdate(TABLE_ID, newTable, DATABASE_NAME, columnTypes);
  verify(schemaManager, times(1)).getTableColumns(DATABASE_NAME, newTable);
  verifyZeroInteractions(metrics);
}