private void setupDataNucleusFreeHive(HiveConf hiveConf) throws MetaException {
    Hive db = Mockito.mock(Hive.class);
    Mockito.when(db.getMSC()).thenReturn(null);
    Mockito.when(db.getConf()).thenReturn(hiveConf);
    Hive.set(db);
  }
Get a mocked Hive object that does not create a real meta store client object
This gets rid of the datanucleus initializtion which makes it easier
to run test from IDEs
@param hiveConf
@throws MetaException
ql/src/test/org/apache/hadoop/hive/ql/parse/authorization/TestSessionUserName.java