@Test
  public void testSessionGlobalInitFileAndConfOverlay() throws Exception {
    // Test if the user session specific conf overlaying global init conf.
    Map<String, String> confOverlay = new HashMap<String, String>();
    confOverlay.put("a", "2");
    confOverlay.put("set:hiveconf:b", "2");
    confOverlay.put("set:hivevar:c", "2");

    SessionHandle sessionHandle = client.openSession(null, null, confOverlay);
    verifyInitProperty("a", "2", sessionHandle);
    verifyInitProperty("b", "2", sessionHandle);
    verifyInitProperty("c", "2", sessionHandle);
    client.closeSession(sessionHandle);

    sessionHandle = client.openSession("hive", "password", confOverlay);
    verifyInitProperty("a", "2", sessionHandle);
    client.closeSession(sessionHandle);
  }
TODO: client.executeStatement do not support listing resources command
(beeline> list jar)
service/src/test/org/apache/hive/service/cli/session/TestSessionGlobalInitFile.java