    @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();
            }
        }
    }