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