@Test
    public void defaultSerializationFormat() throws Exception {
        final BlockingWebClient client = server.blockingWebClient();
        final AggregatedHttpResponse response =
                client.prepare()
                      .post("/hellotextonly")
                      .content(parse("application/x-thrift"),
                               "{" +
                               "  \"method\": \"hello\"," +
                               "  \"type\":\"CALL\"," +
                               "  \"args\": { \"name\": \"trustin\"}" +
                               '}')
                      .execute();
        assertThat(response.status()).isEqualTo(HttpStatus.OK);
    }
Test of serialization format validation / detection based on HTTP headers.
thrift/thrift0.13/src/test/java/com/linecorp/armeria/server/thrift/ThriftSerializationFormatsTest.java