### Question:
JunitPathMapper implements TestRule, PathMapper, FullPathMapper { @Nonnull @Override public Path getApprovalPath(Object value) { return Paths.get(currentTestPath + ".approved"); } 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 shouldReturnProperPathWhenUsedAsFullPathMapper() throws Exception { final Path path = pathMapper.getApprovalPath("test"); Assert.assertThat(path, CoreMatchers.equalTo(pathForClass.resolve("shouldReturnProperPathWhenUsedAsFullPathMapper.approved"))); }