### Question:
JunitPathMapper implements TestRule, PathMapper, FullPathMapper { @Nonnull @Override public Path getPath(@Nullable Object value, Path approvalFilePath) { return currentTestPath.resolve(approvalFilePath); } JunitPathMapper(Path parentPath); @Override Statement apply(final Statement base, final Description description); @Nonnull @Override Path getApprovalPath(Object value); @Nonnull @Override Path getPath(@Nullable Object value, Path approvalFilePath);  }### Answer:
@Test public void shouldReturnProperPathWhenUsedAsPathMapper() throws Exception { final Path path = pathMapper.getPath("Some cool value", Paths.get("subpath")); Assert.assertThat(path, CoreMatchers.equalTo(pathForClass.resolve(Paths.get("shouldReturnProperPathWhenUsedAsPathMapper", "subpath")))); }