RealtimeModel extends TimeModel implements RealtimeClockController { @SuppressWarnings("deprecation") @Deprecated @Override public void tick() { throw new UnsupportedOperationException( "Calling tick directly is not supported in " + RealtimeModel.class.getSimpleName()); } RealtimeModel(RealtimeBuilder builder); @Override void stop(); @SuppressWarnings("deprecation") @Deprecated @Override void tick(); @Override boolean isTicking(); @Override void switchToRealTime(); @Override void switchToSimulatedTime(); @Override ClockMode getClockMode(); ImmutableList<RealtimeTickInfo> getTickInfoList(); @Override @Nonnull U get(Class<U> clazz);  }
@SuppressWarnings("deprecation") @Test public void testTick() { boolean fail = false; try { getModel().tick(); } catch (final UnsupportedOperationException e) { fail = true; assertThat(e.getMessage()).contains("not supported"); } assertThat(fail).isTrue(); assertThat(getModel().isExecutorAlive()).isFalse(); }