}
public static void testNakedI32(int n) throws Exception {
TMemoryBuffer buf = new TMemoryBuffer(0);
TProtocol proto = factory.getProtocol(buf);
proto.writeI32(n);
// System.out.println(buf.inspect());
int out = proto.readI32();
if (out != n) {
throw new RuntimeException("I32 was supposed to be " + n + " but was " + out);
}