@Override
  protected List<MatchResult> match(List<String> specs) throws IOException {
    return match(new File(".").getAbsolutePath(), specs);
  }
@Test
  public void testMatchRelativeWildcardPath() throws Exception {
    File baseFolder = temporaryFolder.newFolder("A");
    File expectedFile1 = new File(baseFolder, "file1");

    expectedFile1.createNewFile();

    List<String> expected = ImmutableList.of(expectedFile1.getAbsolutePath());

    // This no longer works:
    //     System.setProperty("user.dir", temporaryFolder.getRoot().toString());
    // There is no way to set the working directory without forking. Instead we
    // call in to the helper method that gives just about as good test coverage.
    List<MatchResult> matchResults =
        localFileSystem.match(temporaryFolder.getRoot().toString(), ImmutableList.of("A/*"));
    assertThat(
        toFilenames(matchResults),
        containsInAnyOrder(expected.toArray(new String[expected.size()])));
  }