final ClockTime MAGIC = ClockTime.valueOf(0xdeadbeef, TimeUnit.NANOSECONDS);
LatencyEvent ev = new LatencyEvent(MAGIC);
assertEquals("Incorrect latency returned", MAGIC, ev.getLatency());
}
@Test public void NewSegment_isUpdate() {
NewSegmentEvent ev = new NewSegmentEvent(false, 1.0, Format.TIME, 0L, 0L, 0L);
assertFalse("Segment should not be an update", ev.isUpdate());
ev = new NewSegmentEvent(true, 1.0, Format.TIME, 0L, 0L, 0L);
assertTrue("Segment should be an update", ev.isUpdate());
}