DateTime dt = new DateTime(2004, 6, 9, 10, 20, 30, 40, UTC);
assertEquals("Wed 2004-06-09T06:20:30-04:00", f.withZone(NEWYORK).print(dt));
assertEquals("Wed 2004-06-09T12:20:30+02:00", f.withZone(PARIS).print(dt));
assertEquals("Wed 2004-06-09T10:20:30Z", f.withZone(null).print(dt));
dt = dt.withZone(NEWYORK);
assertEquals("Wed 2004-06-09T06:20:30-04:00", f.withZone(NEWYORK).print(dt));
assertEquals("Wed 2004-06-09T12:20:30+02:00", f.withZone(PARIS).print(dt));
assertEquals("Wed 2004-06-09T10:20:30Z", f.withZoneUTC().print(dt));
assertEquals("Wed 2004-06-09T06:20:30-04:00", f.withZone(null).print(dt));
}