PortablePipelineOptions updateDefaultEnvironmentConfig(PortablePipelineOptions options) {
    options.setDefaultEnvironmentConfig(getApiServiceDescriptorUrl());
    return options;
  }
@Test
  public void givenNotStarted_updateDefaultEnvironmentConfig_throws() {
    PortablePipelineOptions options =
        PipelineOptionsFactory.create().as(PortablePipelineOptions.class);
    WorkerService underTest = new WorkerService(options);
    assertThrows(
        IllegalStateException.class, () -> underTest.updateDefaultEnvironmentConfig(options));
  }