e.printStackTrace(); exceptionThrown = true;
	public void testNamespace() {		ResourceSet result;		String query;		XMLResource resu;		boolean exceptionThrown;		String message;						try {			Resource doc = testCollection.createResource(MODULE_NAME, "BinaryResource");			doc.setContent(module);				((EXistResource) doc).setMimeType("application/xquery");			testCollection.storeResource(doc);						XPathQueryService service =				(XPathQueryService) testCollection.getService(					"XPathQueryService",					"1.0");						//TODO : this should not work (empty namespace)			System.out.println("testNamespace 1: ========" );			query = "xquery version \"1.0\";\n" 								+ "(:: empty namespace ::)\n"				+ "declare namespace blah=\"\";\n"									+ "\"OK\"";			try {				exceptionThrown = false;							result = service.query(query);				printResult(result);			} catch (XMLDBException e) {				exceptionThrown = true;				message = e.getMessage();			}			//assertTrue(exceptionThrown);			//			TODO : this should not work (binding same prefix to same URI)			System.out.println("testNamespace 2: ========" );			query = "xquery version \"1.0\";\n" 				+ "import module namespace blah=\"blah\" at \"" + URI + "/test/" + MODULE_NAME + "\";\n"				+ "(:: redefine existing prefix ::)\n"				+ "declare namespace blah=\"blah\";\n"						+ "$blah:param";			try {				exceptionThrown = false;							result = service.query(query);				printResult(result);							assertEquals( "XQuery: " + query, 1, result.getSize() );				//The earliest !				assertEquals( "XQuery: " + query, "value-1", ((XMLResource)result.getResource(0)).getContent());			} catch (XMLDBException e) {                e.printStackTrace();				exceptionThrown = true;				message = e.getMessage();			}			assertTrue(exceptionThrown);			//			TODO : this should not work (binding same prefix to different URI)			System.out.println("testNamespace 3: ========" );			query = "xquery version \"1.0\";\n" 				+ "import module namespace blah=\"blah\" at \"" + URI + "/test/" + MODULE_NAME + "\";\n"				+ "(:: redefine existing prefix ::)\n"				+ "declare namespace blah=\"bla\";\n"				+ "declare variable $blah:param  {\"value-2\"};\n"							+ "$blah:param";			try {				exceptionThrown = false;							result = service.query(query);				printResult(result);								assertEquals( "XQuery: " + query, 1, result.getSize() );//					The latest !!!				assertEquals( "XQuery: " + query, "value-2", ((XMLResource)result.getResource(0)).getContent());			} catch (XMLDBException e) {				exceptionThrown = true;				message = e.getMessage();			}			assertTrue(exceptionThrown);						} catch (XMLDBException e) {			System.out.println("testNamespace : XMLDBException: "+e);			fail(e.getMessage());		}				}