### Question:
ObjectContextChangeLog { void reset() { this.diffs = new ArrayList<>(); this.markers = new HashMap<>(); } ObjectContextChangeLog();   }### Answer:
@Test public void testReset() { ObjectContextChangeLog recorder = new ObjectContextChangeLog(); assertNotNull(recorder.getDiffs()); assertTrue(recorder.getDiffs().isNoop()); recorder.addOperation(new NodeCreateOperation(new Object())); assertNotNull(recorder.getDiffs()); assertFalse(recorder.getDiffs().isNoop()); recorder.reset(); assertNotNull(recorder.getDiffs()); assertTrue(recorder.getDiffs().isNoop()); recorder.addOperation(new NodeCreateOperation(new Object())); GraphDiff diff = recorder.getDiffs(); assertFalse(diff.isNoop()); recorder.reset(); assertFalse(diff.isNoop()); }