@Deprecated
  public WritableByteChannel create(GcsPath path, String type) throws IOException {
    CreateOptions.Builder builder = CreateOptions.builder().setContentType(type);
    return create(path, builder.build());
  }
@Test
  public void testCreate() throws IOException {
    GcsOptions gcsOptions = gcsOptionsWithTestCredential();

    GcsUtilMock gcsUtil = GcsUtilMock.createMock(gcsOptions);

    GoogleCloudStorage mockStorage = Mockito.mock(GoogleCloudStorage.class);
    WritableByteChannel mockChannel = Mockito.mock(WritableByteChannel.class);

    gcsUtil.googleCloudStorage = mockStorage;

    when(mockStorage.create(any(), any())).thenReturn(mockChannel);

    GcsPath path = GcsPath.fromUri("gs://testbucket/testdirectory/otherfile");
    CreateOptions createOptions = CreateOptions.builder().build();

    assertEquals(mockChannel, gcsUtil.create(path, createOptions));
  }