@Test
public void testLaunchCommandIsNull() throws IOException {

  MockClientContext mockClientContext = createMockClientContext();
  FileSystemOperations fsOperations =
      new FileSystemOperations(mockClientContext);
  HadoopEnvironmentSetup hadoopEnvSetup =
      new HadoopEnvironmentSetup(mockClientContext, fsOperations);
  Configuration yarnConfig = new Configuration();
  Component component = new Component();
  TensorFlowRunJobParameters params = new TensorFlowRunJobParameters();
  params.setName("testName");
  setLaunchCommandToParams(params, null);
  expectedException.expect(IllegalArgumentException.class);
  expectedException.expectMessage("LaunchCommand must not be null or empty");
  TensorFlowLaunchCommand launchCommand =
      createTensorFlowLaunchCommandObject(hadoopEnvSetup, yarnConfig,
          component,
      params);
  launchCommand.generateLaunchScript();
}