@Test
    public void testNullPointerOnTika() throws Exception {
        for (String path : PATHS) {
            if ("/rmeta".equals(path)) {
                continue;
            }
            String accept = "*/*";
            if ("/tika".equals(path)) {
                accept = "text/plain";
            }
            Response response = WebClient
                    .create(endPoint + path)
                    .accept(accept)
                    .put(ClassLoader.getSystemResourceAsStream(TEST_NULL));
            assertNotNull(response, "null response: " + path);
            assertEquals(UNPROCESSEABLE, response.getStatus(), "unprocessable: " + path);
            String msg = getStringFromInputStream((InputStream) response.getEntity());
            assertEquals("", msg, "should be empty: " + path);

        }
    }
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