public void testRef() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("Hello World");
PropertyPlaceholderDelegateRegistry delegate = (PropertyPlaceholderDelegateRegistry) context.getRegistry();
JndiRegistry jndi = (JndiRegistry) delegate.getRegistry();
bindToRegistry(jndi);
template.sendBody("ref:foo", "Hello World");
assertMockEndpointsSatisfied();