public static void load(Configuration conf, InputStream is) throws IOException {
    conf.addResource(is);
  }
@Test
  public void constructors3() throws Exception {
    InputStream is = new ByteArrayInputStream(
        "<xxx><property name=\"key1\" value=\"val1\"/></xxx>".getBytes());
    Configuration conf = new Configuration(false);
    ConfigurationUtils.load(conf, is);
    assertEquals("val1", conf.get("key1"));
  }