assertEquals("myname", proxy.getName());
assertEquals(99, proxy.getAge());
}
public void testJmsProxyFactoryBeanAndServiceExporterWithCustomInvocationObject() throws Exception {
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() {