class YAML {

    public static YamlValue parse(String string) throws YamlException {
        return YamlValue.of(decode(string));
    }

}

class YamlTest  {

	@Test
	public void testParseSimpleMap() {

		String yaml = "p: value";
		YamlObject o = YAML.parse(yaml).asYamlObject();
		assertEquals("value",o.get("p"));
	}

}