assertEquals(bean.getCalendar().getTimeInMillis(), parsed.getCalendar().getTimeInMillis());
}
public void testLoadBean() {
Yaml beanLoader = new Yaml();
CalendarBean bean = beanLoader.loadAs(
"calendar: 2001-12-14t21:59:43.10-05:00\nname: dinner", CalendarBean.class);
assertEquals("dinner", bean.getName());
Calendar calendar = bean.getCalendar();
assertEquals(TimeZone.getTimeZone("GMT-5:00").getOffset(calendar.getTime().getTime()),
calendar.getTimeZone().getOffset(calendar.getTime().getTime()));