assertEquals(cacheHeader, Boolean.parseBoolean(cached));
assertEquals(cacheHeader, Boolean.valueOf(cached).booleanValue());
    protected void doStoredQuery(boolean cacheHeader) {    	try {            System.out.println("--- Calling query: " + COLLECTION_URI + "/test.xq?p=Hello");            HttpURLConnection connect = getConnection(COLLECTION_URI + "/test.xq?p=Hello");            connect.setRequestMethod("GET");            connect.connect();            int r = connect.getResponseCode();            assertEquals("Server returned response code " + r, 200, r);                        dumpHeaders(connect);            String cached = connect.getHeaderField("X-XQuery-Cached");            System.out.println("X-XQuery-Cached: " + cached);            assertNotNull(cached);            assertEquals(cacheHeader, Boolean.parseBoolean(cached));                        String contentType = connect.getContentType();            int semicolon = contentType.indexOf(';');            if (semicolon > 0) {                contentType = contentType.substring(0, semicolon).trim();            }            assertEquals("Server returned content type " + contentType, "text/text", contentType);            System.out.println('"' + readResponse(connect.getInputStream()) + '"');                    } catch (Exception e) {            fail(e.getMessage());        }    }