static OSSOutputFile fromLocation(
      OSS client, String location, AliyunProperties aliyunProperties) {
    return new OSSOutputFile(
        client, new OSSURI(location), aliyunProperties, MetricsContext.nullMetrics());
  }
@Test
  public void testFromLocation() {
    assertThatThrownBy(() -> OSSOutputFile.fromLocation(ossClient, null, aliyunProperties))
        .isInstanceOf(NullPointerException.class)
        .hasMessageContaining("location cannot be null");
  }