@Test
public void testGetClass() throws IOException {

  out=new BufferedWriter(new FileWriter(CONFIG));
  startConfig();
  appendProperty("test.class1", "java.lang.Integer");
  appendProperty("test.class2", " java.lang.Integer ");
  endConfig();
  Path fileResource = new Path(CONFIG);
  conf.addResource(fileResource);
  assertEquals("java.lang.Integer",
      conf.getClass("test.class1", null).getCanonicalName());
  assertEquals("java.lang.Integer",
      conf.getClass("test.class2", null).getCanonicalName());
}