}
public static void testNakedString(String str) throws Exception {
TMemoryBuffer buf = new TMemoryBuffer(0);
TProtocol proto = factory.getProtocol(buf);
proto.writeString(str);
// System.out.println(buf.inspect());
String out = proto.readString();
if (!str.equals(out)) {
throw new RuntimeException("String was supposed to be '" + str + "' but was '" + out + "'");
}