public void testRequesterFullLifecycle() throws Exception
{
InboundEndpoint in = getTestInboundEndpoint("out", "test://out", null, null, null, connector);
MessageRequester requester = connector.getRequesterFactory().create(in);
requester.initialise();
assertTrue(requester.getLifecycleState().isInitialised());
requester.connect();
assertTrue(requester.isConnected());
requester.start();
assertTrue(requester.getLifecycleState().isStarted());
requester.stop();
assertTrue(requester.getLifecycleState().isStopped());
requester.disconnect();
assertFalse(requester.isConnected());
requester.dispose();
assertTrue(requester.getLifecycleState().isDisposed());
}