@Test
public void currentAndBasename() {

    String prefix = "prefix_[CURRENTPAGE]_[BASENAME]";
    assertEquals("prefix_5_name.pdf",
            new PrefixTypesChain(prefix).process(prefix, nameRequest().originalName("name").page(5)));
}