* @version $Rev: 608822 $ $Date: 2008-01-04 12:59:56 +0000 (Fri, 04 Jan 2008) $
*/
public class CallbackInterfaceInterceptorTestCase extends TestCase {
public void testHasCallbackObject() {
CallbackInterfaceInterceptor interceptor = new CallbackInterfaceInterceptor();
Interceptor next = EasyMock.createMock(Interceptor.class);
EasyMock.expect(next.invoke(EasyMock.isA(Message.class))).andReturn(null);
EasyMock.replay(next);
interceptor.setNext(next);
Message msg = new MessageFactoryImpl().createMessage();
msg.setFrom(new EndpointReferenceImpl("uri"));
msg.getFrom().getReferenceParameters().setCallbackObjectID("ABC");
interceptor.invoke(msg);
EasyMock.verify(next);
}