@Test
public void testNormalWorkerComponentNumWorkersIsOne() throws IOException {

  testCommons.yarnConfig.set("hadoop.registry.dns.domain-name", "testDomain");
  TensorFlowRunJobParameters parameters = new TensorFlowRunJobParameters();
  parameters.setWorkerResource(testCommons.resource);
  parameters.setName("testJobName");
  parameters.setNumWorkers(1);
  parameters.setWorkerDockerImage("testWorkerDockerImage");
  TensorFlowWorkerComponent workerComponent =
      createWorkerComponent(parameters);
  Component component = workerComponent.createComponent();
  assertEquals(0L, (long) component.getNumberOfContainers());
  verifyCommons(component);
}