assertEquals("[This is an 'example'., This is an \"example\"., '123']\n", output);
// single quoted
DumperOptions options = new DumperOptions();
options.setDefaultScalarStyle(ScalarStyle.SINGLE_QUOTED);
Yaml yaml = new Yaml(options);
String output2 = yaml.dump(list);
// System.out.println(output2);
assertEquals("- 'This is an ''example''.'\n- 'This is an \"example\".'\n- '123'\n", output2);
// double quoted
DumperOptions options2 = new DumperOptions();
options2.setDefaultScalarStyle(ScalarStyle.DOUBLE_QUOTED);