public static Endpoints.@Nullable ApiServiceDescriptor getStatusDescriptor()
      throws TextFormat.ParseException {
    String statusApiDescriptor = System.getenv().get(STATUS_API_SERVICE_DESCRIPTOR);
    if (Strings.isNullOrEmpty(statusApiDescriptor)) {
      // Missing STATUS_API_SERVICE_DESCRIPTOR env var is a signal that the worker status API
      // is unsupported by the current runner.
      return null;
    }
    return parseApiServiceDescriptorFromText(statusApiDescriptor);
  }
@Test
  public void testParseStatusApiDescriptor() throws TextFormat.ParseException {
    assertNull(DataflowWorkerHarnessHelper.getStatusDescriptor());
  }