### Question:
ServerConnection extends UnicastExportable implements RemoteConnection { @Override public void close() { unExport(false); con.close(); } ServerConnection(BlobStoreConnection con, Exporter exporter); @Override RemoteBlob getBlob(URI id, Map<String, String> hints); @Override RemoteBlobCreator getBlobCreator(long estimatedSize, Map<String, String> hints); @Override RemoteIterator<URI> listBlobIds(String filterPrefix); @Override void sync(); @Override void close(); @Override void unreferenced();  }### Answer:
@Test public void testClose() throws RemoteException { ServerConnection sc = new ServerConnection(con, exporter); reset(con); con.close(); replay(con); assertNotNull(sc.getExported()); sc.close(); assertNull(sc.getExported()); verify(con); }