### Question:
SynchronizedMarkHolder extends MarkHolder { @Override public synchronized void event( long gen, String eventName, String tagName, long tagId, long nanoTime) { writeNnss(gen + EVENT_N2S2_OP, nanoTime, tagId, eventName, tagName); } SynchronizedMarkHolder();   SynchronizedMarkHolder(int maxEvents); @Override synchronized void start(
      long gen, String taskName, String tagName, long tagId, long nanoTime); @Override synchronized void start(long gen, String taskName, long nanoTime); @Override synchronized void start(long gen, String taskName, String subTaskName, long nanoTime); @Override synchronized void link(long gen, long linkId); @Override synchronized void stop(long gen, long nanoTime); @Override synchronized void stop(
      long gen, String taskName, String tagName, long tagId, long nanoTime); @Override synchronized void stop(long gen, String taskName, long nanoTime); @Override synchronized void stop(long gen, String taskName, String subTaskName, long nanoTime); @Override synchronized void event(
      long gen, String eventName, String tagName, long tagId, long nanoTime); @Override synchronized void event(long gen, String eventName, long nanoTime); @Override synchronized void event(long gen, String eventName, String subEventName, long nanoTime); @Override synchronized void attachTag(long gen, String tagName, long tagId); @Override void attachKeyedTag(long gen, String name, long value0); @Override void attachKeyedTag(long gen, String name, String value); @Override void attachKeyedTag(long gen, String name, long value0, long value1); @Override synchronized void resetForTest(); @Override List<Mark> read(boolean concurrentWrites); @Override int maxMarks();  }### Answer:
@Test public void event() { mh.event(gen, "task1", 8); mh.event(gen, "task2", 5); List<Mark> marks = mh.read(false); assertEquals(2, marks.size()); List<Mark> expected = Arrays.asList(Mark.event(gen, 8, "task1"), Mark.event(gen, 5, "task2")); assertEquals(expected, marks); }