@Test
public void testToString() throws IOException {

  out=new BufferedWriter(new FileWriter(CONFIG));
  startConfig();
  endConfig();
  Path fileResource = new Path(CONFIG);
  conf.addResource(fileResource);
  String expectedOutput =
    "Configuration: core-default.xml, core-site.xml, " +
    fileResource.toString();
  assertEquals(expectedOutput, conf.toString());
}