* @version $Rev: 574648 $ $Date: 2007-09-11 10:45:36 -0700 (Tue, 11 Sep 2007) $
*/
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.getTo().getReferenceParameters().setCallbackObjectID("java:" + System.identityHashCode("ABC"));
interceptor.invoke(msg);
EasyMock.verify(next);
}