assertTrue(message.indexOf("FORG0001") > -1);
assertTrue(message.indexOf("FORG0001") > -1 | message.indexOf("FOCH0002") > -1);
	public void testMax() throws XPathException {		ResourceSet result 		= null;		String		r			= "";		String message;				try {			result 	= service.query( "max((1, 2))" );			r 		= (String) result.getResource(0).getContent();			assertEquals( "2", r );							result 	= service.query( "max((<a>1</a>, <b>2</b>))" );			r 		= (String) result.getResource(0).getContent();			assertEquals( "2", r );							result 	= service.query( "max(())" );					assertEquals( 0, result.getSize());							result 	= service.query("max((xs:dateTime('2005-12-19T16:22:40.006+01:00'), xs:dateTime('2005-12-19T16:29:40.321+01:00')))");					r 		= (String) result.getResource(0).getContent();			assertEquals( "2005-12-19T16:29:40.321+01:00", r );							result 	= service.query("max(('a', 'b'))");					r 		= (String) result.getResource(0).getContent();			assertEquals( "b", r );							try {				message = "";				result 	= service.query("max((xs:dateTime('2005-12-19T16:22:40.006+01:00'), 'a'))");	            } catch (XMLDBException e) {                message = e.getMessage();            }            assertTrue(message.indexOf("FORG0006") > -1);            			try {				message = "";				result 	= service.query("max(1, 2)");	            } catch (XMLDBException e) {                message = e.getMessage();            }            assertTrue(message.indexOf("FORG0001") > -1);									} catch (XMLDBException e) {			e.printStackTrace();			fail(e.getMessage());		}	}	