@BeforeEach
    public void setUp() throws ListenFailedException, UnknownHostException {
        // reset some params:
        retryPolicy.setEnabled(true);
        retryPolicy.setBaseDelay(0);
        srcServer.mb.putProtocol(new SimpleProtocol());
        srcServer.setupRouting(new RoutingTableSpec(SimpleProtocol.NAME));
        // create sessions:
        ++sessionNumber;
        sessName = "session" + sessionNumber;
        dstSessName = "dst/" + sessName;
        dstSession = dstServer.mb.createDestinationSession(
                new DestinationSessionParams().setName(sessName).setMessageHandler(new Receptor()));
        srcSession = srcServer.mb.createSourceSession(
                new SourceSessionParams().setTimeout(600.0).setThrottlePolicy(null).setReplyHandler(new Receptor()));
        // wait for session register visible:
        assertTrue(srcServer.waitSlobrok(dstSessName, 1));
    }
@author havardpe
@author Simon Thoresen Hult
messagebus/src/test/java/com/yahoo/messagebus/routing/RoutingTestCase.java