@Test
    public void testMeta() throws Exception {
        InputStream stream = ClassLoader.getSystemResourceAsStream(TEST_HELLO_WORLD);

        Response response = WebClient
                .create(endPoint + "/meta" + "/Author")
                .type("application/mock+xml")
                .accept(MediaType.TEXT_PLAIN)
                .put(copy(stream, 100));
        assertEquals(Response.Status.BAD_REQUEST.getStatusCode(), response.getStatus());
        String msg = getStringFromInputStream((InputStream) response.getEntity());
        assertEquals("Failed to get metadata field Author", msg);
    }
Test to make sure that no stack traces are returned
when the stack trace param is set to false.
tika-server/tika-server-core/src/test/java/org/apache/tika/server/core/StackTraceOffTest.java