### Question:
MessageFuture { public boolean isTimeout() { return System.currentTimeMillis() - start > timeout; }  boolean isTimeout(); Object get(long timeout, TimeUnit unit); void setResultMessage(Object obj); RpcMessage getRequestMessage(); void setRequestMessage(RpcMessage requestMessage); long getTimeout(); void setTimeout(long timeout);  }### Answer:
@Test public void testIsTimeOut() throws Exception { MessageFuture messageFuture = new MessageFuture(); messageFuture.setTimeout(TIME_OUT_FIELD); assertThat(messageFuture.isTimeout()).isFalse(); Thread.sleep(TIME_OUT_FIELD + 1); assertThat(messageFuture.isTimeout()).isTrue(); }