@Test
    void rpcNoMethod() throws TTransportException {
        final String request =
                "{\n" +
                "  \"type\" : \"CALL\",\n" +
                "  \"args\" : {\n" +
                "    \"methodArg1\" : \"foo1\",\n" +
                "    \"methodArg2\" : 200,\n" +
                "    \"details\" : {\n" +
                "      \"detailsArg1\" : \"foo2\",\n" +
                "      \"detailsArg2\" : 100\n" +
                "    }\n" +
                "  }\n" +
                '}';
        final TTextProtocol prot = new TTextProtocol(
                new TIOStreamTransport(new ByteArrayInputStream(request.getBytes())));
        assertThatThrownBy(prot::readMessageBegin).isInstanceOf(TException.class);
    }
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