assertTrue(proxy instanceof MockEndPoint);
assertTrue(proxy instanceof EndPointProxy);
}
public void testInvoke() throws Exception {
MockEndPoint actual = new MockEndPointImpl(new MockNode(), "", targets);
EndPointUtil.interConnect(actual, factory);
MockEndPoint endPoint = (MockEndPoint) proxy;
Object opaque = new Object();
endPoint.sendRawObject(opaque);
List received = actual.getReceived();
assertEquals(1, received.size());
assertEquals(opaque, ((Request)received.get(0)).getParameters()[0]);
}