private static String readFile(String filename) throws IOException {
        return Resources.toString(
                Resources.getResource(
                        TTextProtocolTest.class,
                        "/testing/thrift/text/" + filename),
                Charsets.UTF_8
        );
    }
Read in (deserialize) a thrift message in TTextProtocol format
from a file on disk, then serialize it back out to a string.
Finally, deserialize that string and compare to the original
message.
thrift/thrift0.13/src/test/java/com/linecorp/armeria/common/thrift/text/TTextProtocolTest.java