@Test
public void testBuildClass() throws Exception {

  final Props jobProps = new Props();
  jobProps.put("type", "anothertestjob");
  jobProps.put("test", "test1");
  jobProps.put("pluginprops3", "4");
  final Job job = this.manager.buildJobExecutor("anothertestjob", jobProps, this.logger);
  assertTrue(job instanceof FakeJavaJob);
  final FakeJavaJob fjj = (FakeJavaJob) job;
  final Props props = fjj.getJobProps();
  assertEquals("test1", props.get("test"));
  assertNull(props.get("pluginprops1"));
  assertEquals("4", props.get("pluginprops3"));
  assertEquals("commonprop1", props.get("commonprop1"));
  assertEquals("commonprop2", props.get("commonprop2"));
  assertEquals("commonprop3", props.get("commonprop3"));
  assertNull(props.get("commonprivate1"));
}