assertTrue(exceptionThrown);
	public void testVariable2() {		ResourceSet result;		String query;		XMLResource resu;		boolean exceptionThrown;		String message;						try {			XPathQueryService service =				(XPathQueryService) testCollection.getService(					"XPathQueryService",					"1.0");						//TODO : this should not work (variable redeclaration)			try {				exceptionThrown = false;				System.out.println("testVariable 4 ========" );				query = "xquery version \"1.0\";\n" 									+ "declare variable $a {\"1st instance\"};\n"					+ "declare variable $a {\"2nd instance\"};\n"					+ "$a";								result = service.query(query);				printResult(result);					assertEquals( "XQuery: " + query, 1, result.getSize() );				assertEquals( "XQuery: " + query, "2nd instance", ((XMLResource)result.getResource(0)).getContent());							} catch (XMLDBException e) {				exceptionThrown = true;				message = e.getMessage();			}			//assertTrue("XQuery: " + query, exceptionThrown);					} catch (XMLDBException e) {			System.out.println("testVariable : XMLDBException: "+e);			fail(e.getMessage());		}	}			