try { String uri = COLLECTION_URI + "?_query=" + URLEncoder.encode("doc('"+ DBBroker.ROOT_COLLECTION + "/test/test.xml') HttpURLConnection connect = getConnection(uri); connect.setRequestMethod("GET"); connect.connect();  int r = connect.getResponseCode(); assertEquals("Server returned response code " + r, 200, r);  System.out.println(readResponse(connect.getInputStream())); } catch (Exception e) { fail(e.getMessage()); } }
try { String uri = COLLECTION_URI + "?_query=" + URLEncoder .encode( "doc('" + DBBroker.ROOT_COLLECTION + "/test/test.xml') "UTF-8"); HttpURLConnection connect = getConnection(uri); connect.setRequestMethod("GET"); connect.connect();  int r = connect.getResponseCode(); assertEquals("Server returned response code " + r, 200, r);  System.out.println(readResponse(connect.getInputStream())); } catch (Exception e) { fail(e.getMessage()); } }
	public void testQueryGet() {		try {			String uri = COLLECTION_URI + "?_query=" + URLEncoder.encode("doc('"+ DBBroker.ROOT_COLLECTION + "/test/test.xml')//para[. = '\u00E4\u00E4\u00FC\u00FC\u00F6\u00F6\u00C4\u00C4\u00D6\u00D6\u00DC\u00DC']/text()", "UTF-8");			HttpURLConnection connect = getConnection(uri);			connect.setRequestMethod("GET");			connect.connect();						int r = connect.getResponseCode();			assertEquals("Server returned response code " + r, 200, r);						System.out.println(readResponse(connect.getInputStream()));	    } catch (Exception e) {            	        fail(e.getMessage()); 	    }	}