JobHandler { JobHandler(PodTemplateHandler podTemplateHandler) { this.podTemplateHandler = podTemplateHandler; } JobHandler(PodTemplateHandler podTemplateHandler); Job getJob(ResourceConfig config,
                      List<ImageConfiguration> images);  }
@Test public void jobHandlerTest() { ContainerHandler containerHandler = getContainerHandler(); PodTemplateHandler podTemplateHandler = new PodTemplateHandler(containerHandler); JobHandler jobHandler = new JobHandler(podTemplateHandler); ResourceConfig config = new ResourceConfig.Builder() .imagePullPolicy("IfNotPresent") .controllerName("testing") .withServiceAccount("test-account") .volumes(volumes1) .build(); Job job = jobHandler.getJob(config,images); assertNotNull(job.getSpec()); assertNotNull(job.getMetadata()); assertNotNull(job.getSpec().getTemplate()); assertEquals("testing",job.getMetadata().getName()); assertEquals("test-account",job.getSpec().getTemplate() .getSpec().getServiceAccountName()); assertFalse(job.getSpec().getTemplate().getSpec().getVolumes().isEmpty()); assertEquals("test",job.getSpec().getTemplate().getSpec(). getVolumes().get(0).getName()); assertEquals("/test/path",job.getSpec().getTemplate() .getSpec().getVolumes().get(0).getHostPath().getPath()); assertNotNull(job.getSpec().getTemplate().getSpec().getContainers()); }