YamlEngine { public static String marshal(final Object value) { return new Yaml(new ShardingSphereYamlRepresenter()).dumpAsMap(value); }  static T unmarshal(final File yamlFile, final Class<T> classType); static T unmarshal(final byte[] yamlBytes, final Class<T> classType); static T unmarshal(final String yamlContent, final Class<T> classType); static Map<?, ?> unmarshal(final String yamlContent); static Properties unmarshalProperties(final String yamlContent); static String marshal(final Object value);  }
@Test public void assertMarshal() { FixtureYamlRuleConfiguration actual = new FixtureYamlRuleConfiguration(); actual.setName("test"); assertThat(YamlEngine.marshal(actual), is("name: test\n")); }