@Test
public void testBasicLogging() {

  assertTrue(helper.record().shouldLog());
  for (int i = 0; i < 5; i++) {
    timer.advance(LOG_PERIOD / 10);
    assertFalse(helper.record().shouldLog());
  }
  timer.advance(LOG_PERIOD);
  assertTrue(helper.record().shouldLog());
}