try { DayTimeDurationValue dtdv = new DayTimeDurationValue("P3DT1H2M3S"); dtdv.convertTo(Type.YEAR_MONTH_DURATION); fail(); } catch (XPathException e) {  }
DayTimeDurationValue dtdv = new DayTimeDurationValue("P3DT1H2M3S"); assertEquals("P0M", dtdv.convertTo(Type.YEAR_MONTH_DURATION).getStringValue());
	public void testConvert2() throws XPathException {		try {			DayTimeDurationValue dtdv = new DayTimeDurationValue("P3DT1H2M3S");			dtdv.convertTo(Type.YEAR_MONTH_DURATION);			fail();		} catch (XPathException e) {			// expected		}	}