@After
  public void after() throws IOException {
    SessionState.get().close();
    hm.close(false);
  }
Start a remote metastore and initialize a Hive object pointing at it.
ql/src/test/org/apache/hadoop/hive/ql/metadata/TestHiveRemote.java