### Question:
ServerSynchronization extends UnicastExportable implements RemoteSynchronization { public void beforeCompletion() { sync.beforeCompletion(); } ServerSynchronization(Synchronization sync, Exporter exporter); void afterCompletion(int status); void beforeCompletion();  }### Answer:
@Test public void testBeforeCompletion() throws RemoteException { reset(sync); sync.beforeCompletion(); replay(sync); ss.beforeCompletion(); verify(sync); }