@Test
public void testMessage() {

    final Deadline deadline = Deadline.fromUnixMilliseconds(1000).freeze();
    Assert.assertTrue(deadline.toString(), deadline.isExpired());
    final String format = deadline.formatTarget();
    final TimeValue diff = TimeValue.ofMilliseconds(deadline.remaining());
    Assert.assertEquals("Deadline: " + format + ", " + diff + " overdue",
            DeadlineTimeoutException.from(deadline).getMessage());
}