String output1 = yaml.dumpAs(bean, new Tag("!!foo.bar"), null);
assertEquals("!!foo.bar\na: aaa\nnumbers: [1, 2, 3]\n", output1);
}
public void testDumperNullStyle2() {
DumperOptions options = new DumperOptions();
options.setDefaultFlowStyle(FlowStyle.BLOCK);
Yaml yaml = new Yaml(options);
Bean124 bean = new Bean124();
String output1 = yaml.dumpAs(bean, new Tag("!!foo2.bar2"), null);
assertEquals("!!foo2.bar2\na: aaa\nnumbers:\n- 1\n- 2\n- 3\n", output1);
}