@Test
public void testExtractPercentComplete() {

  Assert.assertNull(TempletonUtils.extractPercentComplete("fred"));
  for (String line : CONTROLLER_LINES) {
    Assert.assertNull(TempletonUtils.extractPercentComplete(line));
  }
  String fifty = "2011-12-15 18:12:36,333 [main] INFO  org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - 50% complete";
  Assert.assertEquals("50% complete", TempletonUtils.extractPercentComplete(fifty));
}