public void testLoadBeanWithBlockFlow() {
MyBean bean = new MyBean();
bean.setId("id123");
DateTime etalon = new DateTime(timestamp, DateTimeZone.UTC);
bean.setDate(etalon);
DumperOptions options = new DumperOptions();
options.setDefaultFlowStyle(FlowStyle.BLOCK);
Yaml dumper = new Yaml(new JodaTimeRepresenter(), options);
// compare Nodes with flow style AUTO and flow style BLOCK
Node node1 = dumper.represent(bean);
DumperOptions options2 = new DumperOptions();
options2.setDefaultFlowStyle(FlowStyle.AUTO);
Yaml dumper2 = new Yaml(new JodaTimeRepresenter(), options2);
Node node2 = dumper2.represent(bean);
assertEquals(node2.toString(), node1.toString());
// compare Events with flow style AUTO and flow style BLOCK
List<Event> events1 = dumper.serialize(node1);