FileVisitResult (Path expectedFile, BasicFileAttributes attrs) { Path actualFile = actual.resolve(expected.relativize(expectedFile)); assertThat(actualFile).usingCharset(StandardCharsets.UTF_8).hasSameTextualContentAs(expectedFile, StandardCharsets.UTF_8); return FileVisitResult.CONTINUE; }