String string = "a"; String expected = "a"; String query = "encode-for-uri(\"" + string + "\")";
string = "http: expected = "http%3A%2F%2Fwww.example.com%2F00%2FWeather%2FCA%2FLos%2520Angeles#ocean"; query = "encode-for-uri(\"" + string + "\")";
	public void testEncodeForURI() {		ResourceSet result 		= null;		String		r			= "";		try {			String string = "a";			String expected = "a";			String query = "encode-for-uri(\"" + string + "\")";			result = service.query(query);			r 	= (String) result.getResource(0).getContent();			assertEquals(expected, r);		} catch (XMLDBException e) {			System.out.println("testEncodeForURI(): " + e);			fail(e.getMessage());		}				}