@Test public void assertUnmarshalWithPrefix() { InputStream configFileInput = Thread.currentThread().getContextClassLoader().getResourceAsStream("yaml-test.yaml"); FooYamlConfiguration actual = YamlEngine.unmarshal(PREFIX, configFileInput, FooYamlConfiguration.class); assertThat(actual.getFoo(), is("nest_foo")); assertThat(actual.getBar(), is("nest_bar")); assertThat(actual.getNest().getFoo(), is("nest_foo2")); assertThat(actual.getNest().getBar(), is("nest_bar2")); }
public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); } }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  static String marshal(final Object value); static T unmarshal(final String yamlContent, final Class<T> classType); static T unmarshal(final String prefix, final InputStream configFileInput, final Class<T> classType); }
YamlEngine { public static <T> T unmarshal(final String yamlContent, final Class<T> classType) { return new Yaml().loadAs(yamlContent, classType); }  static String marshal(final Object value); static T unmarshal(final String yamlContent, final Class<T> classType); static T unmarshal(final String prefix, final InputStream configFileInput, final Class<T> classType);  }