@Test
public void testFailsToCreateManifestBasedBecauseManifestDoesNotExist() throws Exception {

  try {
    Runfiles.create(
        ImmutableMap.of(
            "RUNFILES_MANIFEST_ONLY", "1",
            "RUNFILES_MANIFEST_FILE", "non-existing path"));
    fail();
  } catch (IOException e) {
    assertThat(e).hasMessageThat().contains("non-existing path");
  }
}