public void tearDown() throws IOException {}
@Test
public void testDivide() throws GoRpcException, IOException, ApplicationException {
Client client = Client.dialHttp(Util.HOST, Util.PORT, Util.PATH, new BsonClientCodecFactory());
BSONObject mArgs = new BasicBSONObject();
mArgs.put("A", 10L);
mArgs.put("B", 3L);
Response response = client.call("Arith.Divide", mArgs);
BSONObject result = (BSONObject) response.getReply();
Assert.assertEquals(3L, result.get("Quo"));
Assert.assertEquals(1L, result.get("Rem"));
client.close();