}
public void testMain() {
Map<String, String> config = new HashMap<String, String>();
config.put("user.home", "HOME");
Constructor constructor = new ConfigurationConstructor(config);
constructor.addTypeDescription(new TypeDescription(TestBean.class, "!testbean"));
Yaml yaml = new Yaml(constructor);
yaml.addImplicitResolver(CFG, Pattern.compile("\\$\\([a-zA-Z\\d\\u002E\\u005F]+\\)"), "$");
TestBean bean = (TestBean) yaml.load("!testbean {myval: !cfg $(user.home)}");
// System.out.println(bean.toString());
assertEquals("Explicit tag must be respected", "HOME", bean.getMyval());