+ public void testGoToLastEvent1() {
+ final long endTimestamp = goToEnd();
+ final long endTime = 4287422460315L;
+ assertEquals(endTime , endTimestamp );
+ }
+
+ /**
+ * Run the void goToLastEvent() method test.
+ */
+ @Test
+ public void testGoToLastEvent2() {
+ long timestamp = -1;
+ while(fixture.readNextEvent()) {
+ timestamp = fixture.getCurrentEvent().getTimestamp();
+ }
+ long endTimestamp = goToEnd();
+ assertEquals(0 , timestamp- endTimestamp );
+ }
+
+ private long goToEnd() {