@Test
public void testCheckTimeout() {

    final Consumer<Response<?, ?>> callback = mock(Consumer.class);
    connection.sendRequest(createRequest(replyToProbe.ref()), callback);
    final long now = context.ticker().read();
    final OptionalLong timeout = connection.checkTimeout(now);
    assertTrue(timeout.isPresent());
}