AbstractClientHistory extends LocalAbortable implements Identifiable<LocalHistoryIdentifier> { final synchronized void onProxyDestroyed(final ProxyHistory proxyHistory) { histories.remove(proxyHistory.getIdentifier().getCookie()); LOG.debug("{}: removed destroyed proxy {}", this, proxyHistory); } AbstractClientHistory(final AbstractDataStoreClientBehavior client, final LocalHistoryIdentifier identifier); @Override LocalHistoryIdentifier getIdentifier(); ClientTransaction createTransaction(); ClientSnapshot takeSnapshot();  }
@Test public void testOnProxyDestroyed() { final ProxyHistory proxyHistory = Mockito.mock(ProxyHistory.class); when(proxyHistory.getIdentifier()).thenReturn(HISTORY_ID); object().onProxyDestroyed(proxyHistory); verify(proxyHistory).getIdentifier(); }