### Question:
ClientSynchronization implements Synchronization { public void beforeCompletion() { try { remote.beforeCompletion(); } catch (RemoteException e) { log.warn("Failed to execute beforeCompletion on remote", e); throw new RuntimeException("Failure to contact remote", e); } } ClientSynchronization(RemoteSynchronization remote); void afterCompletion(int status); void beforeCompletion();  }### Answer:
@Test public void testBeforeCompletion() { reset(sync); sync.beforeCompletion(); replay(sync); cs.beforeCompletion(); verify(sync); }