TestBean target = new TestBean("myname", 99);
final JmsServiceExporter exporter = new JmsServiceExporter();
exporter.setServiceInterface(ITestBean.class);
exporter.setService(target);
exporter.setProducer(createJmsProducer());
exporter.setRemoteInvocationExecutor(new DefaultRemoteInvocationExecutor() {
public Object invoke(RemoteInvocation invocation, Object targetObject)
throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
assertNotNull(invocation.getAttributes());
assertEquals(1, invocation.getAttributes().size());
assertEquals("myValue", invocation.getAttributes().get("myKey"));