channelInfo.put(LogicaSMSChannelAdapter.BINDTYPE, SYNC_BINDTYPE);
SessionPoolMock sessionPool =
new SessionPoolMock("sessionPool", orderedExpectations);
mockMessage = new MultiChannelMessageMock("mockMessage", orderedExpectations);
Session badSession = new Session(new TCPIPConnection(ADDRESS, PORT));
PoolableSessionFactory sessionFactory = new PoolableSessionFactory(
ADDRESS, PORT, USERNAME, PASSWORD, SYNC_BINDTYPE);
Session goodSession = (Session) sessionFactory.makeObject();
// Set expectations.
mockMessage.fuzzy.generateTargetMessageAsString(
mockFactory.expectsInstanceOf(String.class)).
returns("Test message");