@Test
public void testPSComponentWithNullJobName() throws IOException {

  TensorFlowRunJobParameters parameters = new TensorFlowRunJobParameters();
  parameters.setPsResource(testCommons.resource);
  parameters.setNumPS(1);
  parameters.setName(null);
  TensorFlowPsComponent psComponent =
      createPsComponent(parameters);
  expectedException.expect(NullPointerException.class);
  expectedException.expectMessage("Job name must not be null");
  psComponent.createComponent();
}