RPCProtocol.class, RPCProtocol.versionID, addr, conf);
}
@Test
public void testRPC() {
IntMessage im1 = client.sendAndReceiveMessage(im0, DESTINATION_VALUE, new IntWritable(
MESSAGE_VALUE));
assertTrue(im0.get() == client.getMessage().get());
assertEquals(im0.getDestinationVertex(), client.getMessage().getDestinationVertex());
assertEquals(im1.getDestinationVertex(), DESTINATION_VALUE);
assertTrue(((IntWritable) im1.getMessageValue()).get() == MESSAGE_VALUE);
}