private Configuration getTestConf() {
    Configuration testConf = new Configuration();
    testConf.set(TEST_KEY, TEST_VAL);
    return testConf;
  }
Basic test case that the ConfServlet can write configuration to its output in XML and JSON
format.
hbase-http/src/test/java/org/apache/hadoop/hbase/http/conf/TestConfServlet.java