### Question:
JbossRemotingExporter extends RemoteExporter implements InitializingBean, BeanNameAware, SmartLifecycle { @Override public void stop(Runnable callback) { stop(); if (null != callback) { callback.run(); } }  @Override void setBeanName(String name); @Override void afterPropertiesSet(); void setSerializationType(JbossSerialization serializationType); void setHost(String host); void setServerName(String serverName); void setClustered(boolean clustered); void setPort(int port); void setUrl(String url); void setTransport(String transport); void setConfiguration(Map<String, String> configuration); @Override boolean isAutoStartup(); @Override void stop(Runnable callback); @Override void start(); @Override void stop(); @Override boolean isRunning(); @Override int getPhase();  }### Answer:
@Test public void testRetreivingDataFromRpc() throws Throwable { AnnotationConfigApplicationContext client = null, server = null; try { server = new AnnotationConfigApplicationContext(ServerConfiguration.class); client = new AnnotationConfigApplicationContext(ClientConfiguration.class); Crm clientBean = client.getBean(Crm.class); long id = 8709; Customer customer = clientBean.getCustomerById(id); Assert.assertNotNull(customer); Assert.assertEquals(customer.getId(), id); if (log.isDebugEnabled()) { log.debug(customer.toString()); } } finally { if (null != client) { client.stop(); } if (null != server) { server.stop(); } } }