UniformTimeManager implements TimeManager { @Override public void setRemainingSeconds(int seconds) { msecRemaining = max(1, (seconds - 10) * 1000); } UniformTimeManager(Board board); @Override int getMsec(); @Override void setRemainingSeconds(int seconds); @Override void startNewTurn();  }
@Test public void testSetRemainingSeconds() { manager.setRemainingSeconds(100); assertEquals(9000, manager.getMsec()); manager.setRemainingSeconds(1000); manager.startNewTurn(); assertEquals(99000, manager.getMsec()); }