String expectedClientBindUrl = ProxyRemotingUtils.getClientBinding(invokerName);
// Get the clientBindUrl from the Proxy itself
Class<?> proxyClass = bean.getClass();
assert Proxy.isProxyClass(proxyClass) : "Stub from JNDI was not a " + Proxy.class.getName();
SessionRemoteProxyInvocationHandler handler = (SessionRemoteProxyInvocationHandler) Proxy
.getInvocationHandler(bean);
String clientBindUrl = handler.getUrl();
// Ensure the expected value is what we've got in the proxy
TestCase.assertEquals("clientBindUrls are not equal", expectedClientBindUrl, clientBindUrl);
// Invoke