SimulatedTimeModel extends TimeModel { @Override public void tick() { tickImpl(); } SimulatedTimeModel(Builder builder); @Override void stop(); @Override void tick();  }
@Test public void testSingleTick() { final TickListenerChecker checker = new TickListenerChecker( getModel().getTickLength(), getModel().getTimeUnit()); getModel().register(checker); assertThat(getModel().getCurrentTime()).isEqualTo(0L); getModel().tick(); assertThat(getModel().getCurrentTime()) .isEqualTo(getModel().getTickLength()); assertThat(checker.getTickCount()).isEqualTo(1); }