@Test(expected = ParseException.class)
public void testWrongDate() throws ParseException {

    // Create the parser
    XsDateTimeFormat format = new XsDateTimeFormat();
    // Set a date
    String time = "2014-10-12T09:00Z";
    // Parse the Date
    Object parseObject = format.parseObject(time);
}