* Test unsigned longs are encoded and decoded correctly
*/
@Test
public void testUnsignedLongs() throws Exception {
UnsignedLong a = UnsignedLong.valueOf("9767889778372766922");
Client client = Client.dialHttp(Util.HOST, Util.PORT, Util.PATH, new BsonClientCodecFactory());
BSONObject mArgs = new BasicBSONObject();
mArgs.put("Num", a);
Response response = client.call("Arith.Increment", mArgs);
Assert.assertEquals(a.add(UnsignedLong.ONE), (UnsignedLong) response.getReply());
client.close();