@Test
public void testGetFileNotFoundException() {

  assertThat(createFileNotFoundException("bucket", /* objectName= */ null, /* cause= */ null))
      .hasMessageThat()
      .startsWith("Item not found: 'gs://bucket/'.");
  assertThat(createFileNotFoundException("bucket", "", /* cause= */ null))
      .hasMessageThat()
      .startsWith("Item not found: 'gs://bucket/'.");
  assertThat(createFileNotFoundException("bucket", "obj", /* cause= */ null))
      .hasMessageThat()
      .startsWith("Item not found: 'gs://bucket/obj'.");
}