@Test
public void testCompactFormatProperty() throws IOException {

  final String testfile = "test-compact-format-property.xml";
  Configuration conf = new Configuration(false);
  assertEquals(0, conf.size());
  ConfigurationUtils.load(conf,
      Thread.currentThread()
          .getContextClassLoader().getResource(testfile).openStream());
  assertEquals(2, conf.size());
  assertEquals("val1", conf.get("key.1"));
  assertEquals("val2", conf.get("key.2"));
}