FolderBasedAsciidocPagesStructureProvider implements AsciidocPagesStructureProvider { @Override public Charset sourceEncoding() { return this.sourceEncoding; } FolderBasedAsciidocPagesStructureProvider(Path documentationRootFolder, Charset sourceEncoding); @Override AsciidocPagesStructure structure(); @Override Charset sourceEncoding();  }
@Test public void sourceEncoding_sourceEncodingProvided_returnsProvidedSourceEncoding() { Path documentationRootFolder = Paths.get("src/test/resources/folder-based-asciidoc-page-structure"); FolderBasedAsciidocPagesStructureProvider folderBasedAsciidocSourceStructureProvider = new FolderBasedAsciidocPagesStructureProvider(documentationRootFolder, UTF_8); Charset sourceEncoding = folderBasedAsciidocSourceStructureProvider.sourceEncoding(); assertThat(sourceEncoding, is(UTF_8)); }