*/
@Test
@RunAsClient // run as a truly remote client
public void testEJBClientInterceptionFromRemoteClient() throws Exception {
// get hold of the EJBClientContext
final EJBClientContext ejbClientContext = EJBClientContext.requireCurrent();
// create some data that the client side interceptor will pass along during the EJB invocation
final Map<String, Object> interceptorData = new HashMap<String, Object>();
final String keyOne = "foo";
final Object valueOne = "bar";
final String keyTwo = "blah";
final Object valueTwo = new Integer("12");
interceptorData.put(keyOne, valueOne);
interceptorData.put(keyTwo, valueTwo);
final SimpleEJBClientInterceptor clientInterceptor = new SimpleEJBClientInterceptor(interceptorData);
// register the client side interceptor
ejbClientContext.registerInterceptor(CLIENT_INTERCEPTOR_ORDER, clientInterceptor);
final Hashtable props = new Hashtable();
props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
final Context jndiContext = new InitialContext(props);
final RemoteSFSB remoteSFSB = (RemoteSFSB) jndiContext.lookup("ejb:" + APP_NAME + "/" + MODULE_NAME + "/" + DISTINCT_NAME