final PeerNode remote = new PeerNode(ConnectionFactory.getInstance()
.getNodes().get(0).getNode().node());
final Connection c = new Connection(self, remote);
final OtpErlangObject raw_result = c.doRPC("lists", "sum", new OtpErlangList(
new OtpErlangList(new OtpErlangObject[] { new OtpErlangInt(1),
new OtpErlangInt(2), new OtpErlangInt(3) })));
final OtpErlangLong result = (OtpErlangLong) raw_result;
assertEquals(6, result.intValue());
assertNotNull(remote.getLastConnectSuccess());
assertEquals(0, remote.getFailureCount());