### Question:
JunitPathMapper implements TestRule, PathMapper, FullPathMapper { Path getCurrentTestPath() { return currentTestPath; } 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 shouldProperlyResolvePathBasedOnTest() throws Exception { final Path currentTestPath = pathMapper.getCurrentTestPath(); final Path expected = pathForClass.resolve("shouldProperlyResolvePathBasedOnTest"); Assert.assertThat(currentTestPath, CoreMatchers.equalTo(expected)); }
@Test public void shouldProperlyResolvePathBasedOnTestOther() throws Exception { final Path currentTestPath = pathMapper.getCurrentTestPath(); final Path expected = pathForClass.resolve("shouldProperlyResolvePathBasedOnTestOther"); Assert.assertThat(currentTestPath, CoreMatchers.equalTo(expected)); }