import org.yaml.snakeyaml.error.YAMLException;
public class CompactConstructorErrorsTest extends TestCase {
public void test1() {
BaseConstructor compact = new CompactConstructor();
Yaml yaml = new Yaml(compact);
String doc = Util.getLocalResource("compactnotation/error1.yaml");
try {
yaml.load(doc);
fail("Package is not specified.");