@Test
public void testManifestBasedCtorArgumentValidation() throws Exception {

  try {
    Runfiles.createManifestBasedForTesting(null);
    fail();
  } catch (IllegalArgumentException e) {
    // expected
  }
  try {
    Runfiles.createManifestBasedForTesting("");
    fail();
  } catch (IllegalArgumentException e) {
    // expected
  }
  try (MockFile mf = new MockFile(ImmutableList.of("a b"))) {
    Runfiles.createManifestBasedForTesting(mf.path.toString());
  }
}