protected void cleanUp(String dbName, String tableName, String typeName) throws Exception {
    if(dbName != null && tableName != null) {
      client.dropTable(dbName, tableName);
    }
    if(dbName != null) {
      silentDropDatabase(dbName);
    }
    if(typeName != null) {
      client.dropType(typeName);
    }
  }
This method simulates another Hive metastore renaming a table, by accessing the db and
updating the name.

Unfortunately, derby cannot be run in two different JVMs simultaneously, but the only way
to rename without having it put in this client's cache is to run a metastore in a separate JVM,
so this simulation is required.
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestHiveMetaStore.java