### Question:
SpywarePluginLayer implements Closeable { public void takeSnapshot(SnapshotInfo info) { taker.execute(info); } SpywarePluginLayer(ActiveThreadSet activeThreads, EventReceiver receiver, SnapshotTaker taker,
            DocumentChangeHandler documentHandler); void takeSnapshot(SnapshotInfo info); void documentChange(DocumentInfo info); @Override void close();  }### Answer:
@Test public void takeSnapshotExecutesTaker() { SnapshotInfo info = mock(SnapshotInfo.class); spl.takeSnapshot(info); verify(taker, times(1)).execute(info); }