@Test
public void testGetAllJobTypes() {

  Configuration conf = new Configuration();
  conf.addResource("tony-default.xml");
  conf.setInt("tony.worker.instances", 3);
  conf.setInt("tony.evaluator.instances", 1);
  conf.setInt("tony.worker.gpus", 1);
  conf.setInt("tony.evaluator.vcores", 2);
  conf.setInt("tony.chief.gpus", 1);
  assertEquals(Utils.getAllJobTypes(conf),
          new HashSet(Arrays.asList("worker", "evaluator")));
}