PathPlaceRequest extends DefaultPlaceRequest { @PreDestroy public void preDestroy() { getPath().dispose(); } PathPlaceRequest();  PathPlaceRequest(final Path path);  PathPlaceRequest(final Path path,
                            final Map<String, String> parameters);  PathPlaceRequest(final Path path,
                            final String id);  PathPlaceRequest(final Path path,
                            final String id,
                            final Map<String, String> parameters); @Override ObservablePath getPath(); @Override String getFullIdentifier(); @Override PlaceRequest clone(); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); @PreDestroy void preDestroy(); static String NULL; }
@Test public void testPreDestroy() { final ObservablePath path = mock(ObservablePath.class); doReturn(path).when(pathPlaceRequest).getPath(); pathPlaceRequest.preDestroy(); verify(path).dispose(); }