  @Test
  public void testGetResourceFiles() throws Exception {

    final Collection<String> actualFiles =
        mojo.getResourceFiles(getFileSets(rootDir), mojo.isFollowLinks(), true, true, false);

    assertThat(actualFiles).isNotNull().doesNotContainNull().hasSameSizeAs(expectedFiles)
        .containsOnlyElementsOf(expectedFiles);

    // the following is the same as above, but easy to compare
    // final ArrayList<String> actualSortedFiles = new ArrayList<String>(actualFiles);
    // Collections.sort(actualSortedFiles);
    // assertThat(actualSortedFiles).isEqualTo(expectedFiles);
  }