}
public static void testDouble() throws Exception {
TMemoryBuffer buf = new TMemoryBuffer(1000);
TProtocol proto = factory.getProtocol(buf);
proto.writeDouble(123.456);
double out = proto.readDouble();
if (out != 123.456) {
throw new RuntimeException("Double was supposed to be " + 123.456 + " but was " + out);
}
}