CommandProcessExpiryCallback implements EntryExpiryCallback<CommandProcess> { @Override public void onEntryExpiry( final CommandProcess process ) { process.stop(); }  @Override void onEntryExpiry( final CommandProcess process );  }
@Test public void testOnEntryExpiry() throws Exception { CommandProcess commandProcess = mock( CommandProcess.class ); callback.onEntryExpiry( commandProcess ); verify( commandProcess ).stop(); }