Calendar cal = Calendar.getInstance();
cal.setTime(new Date(time));
cal.setTimeZone(TimeZone.getTimeZone(timeZone));
bean.setCalendar(cal);
Yaml yaml = new Yaml();
String output = yaml.dumpAsMap(bean);
// System.out.println(output);
assertEquals(warning, "calendar: " + etalon + "\nname: lunch\n", output);
//
Yaml loader = new Yaml();
CalendarBean parsed = loader.loadAs(output, CalendarBean.class);