@Test
public void testParseISODateTime() throws Exception {

    // Format: yyyy-mm-ddThh.mm:ss[+hh:mm|=+hh:mm] Time zone
    String jodaISODate = ISODate
        .parseISODateTime("2010-10-10T00:00:00+02:00");
    assertTrue(jodaISODate.equals("2010-10-09T22:00:00.000Z"));
    // Format: yyyy-mm-ddThh.mm:ss.ms[+hh:mm|=+hh:mm] Time zone
    jodaISODate = ISODate
        .parseISODateTime("2010-10-10T00:00:00.000+02:00");
    assertTrue(jodaISODate.equals("2010-10-09T22:00:00.000Z"));
    // Format: yyyy-mm-ddThh.mm:ssZ (UTC)
    jodaISODate = ISODate.parseISODateTime("2010-10-10T00:00:00Z");
    assertTrue(jodaISODate.equals("2010-10-10T00:00:00.000Z"));
    // Format: yyyy-mm-ddThh.mm:ss.msZ (UTC)
    jodaISODate = ISODate.parseISODateTime("2010-10-10T00:00:00.000Z");
    assertTrue(jodaISODate.equals("2010-10-10T00:00:00.000Z"));
}