@Override
      public void onSuccess(Boolean result) {
        future.set(session);
      }
This class is needed for writing junit tests. For testing the multi-session
use case from hive server 2, we need a session simulation.
ql/src/test/org/apache/hadoop/hive/ql/exec/tez/SampleTezSessionState.java