* @throws Exception
*/
public void testOneChannel() throws Exception {
JChannel channel = new JChannel();
ServerObject serverObject = new ServerObject("obj1");
RpcDispatcher disp=new RpcDispatcher(channel, null, null, serverObject, DEADLOCK_DETECTION);
serverObject.setRpcDispatcher(disp);
channel.connect(name);
Address localAddress = channel.getLocalAddress();
// call the nested group method on itself
MethodCall call = new MethodCall("outerMethod", new Object[0], new Class[0]);
log("calling outerMethod() on all members");
RspList rspList = disp.callRemoteMethods(null, call, GroupRequest.GET_ALL, 0);
log("results of outerMethod(): " + rspList);
assertEquals(1, rspList.size());
assertEquals("outerMethod[innerMethod]", rspList.getValue(localAddress));
assertTrue(rspList.isReceived(localAddress));