@Override
  public void close() {
    finished();
    if (logAtInfo) {
      log.info("{}", this);
    } else {
      if (log.isDebugEnabled()) {
        log.debug("{}", this);
      }
    }
  }
@Test(expected = NullPointerException.class)
  public void testDurationInfoCreationWithNullMsg() {
    DurationInfo info = new DurationInfo(log, null);
    info.close();
  }