### Question:
RemoteResult { @Override public String toString() { return "RemoteResult{" + toStringDescription() + "}"; } private  RemoteResult(@Type int type, long value); static RemoteResult of(long value); boolean isPresent(); long get(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); static final RemoteResult FAILED_TIMED_OUT; static final RemoteResult FAILED_CANCELLED; static final RemoteResult FAILED_THREAD_INTERRUPTED; }### Answer:
@Test public void testToString() { assertThat(RemoteResult.of(3).toString()).isEqualTo("RemoteResult{3}"); assertThat(RemoteResult.FAILED_TIMED_OUT.toString()) .isEqualTo("RemoteResult{FAILED_TIMED_OUT}"); assertThat(RemoteResult.FAILED_CANCELLED.toString()) .isEqualTo("RemoteResult{FAILED_CANCELLED}"); assertThat(RemoteResult.FAILED_THREAD_INTERRUPTED.toString()) .isEqualTo("RemoteResult{FAILED_THREAD_INTERRUPTED}"); }