@Test
    void requireThatTimeoutWorks() {
        retryPolicy.setBaseDelay(0.01);
        srcSession.setTimeout(0.5);
        assertTrue(srcSession.send(createMessage("msg"), Route.parse("dst/unknown")).isAccepted());
        Reply reply = ((Receptor) srcSession.getReplyHandler()).getReply(60);
        assertNotNull(reply);
        assertEquals(2, reply.getNumErrors());
        assertEquals(ErrorCode.NO_ADDRESS_FOR_SERVICE, reply.getError(0).getCode());
        assertEquals(ErrorCode.TIMEOUT, reply.getError(1).getCode());
    }
@author havardpe
@author Simon Thoresen Hult
messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingTestCase.java