// Path: src/com/esotericsoftware/yamlbeans/YamlReader.java
// public class YamlReaderException extends YamlException {
// 	public YamlReaderException (String message, Throwable cause) {
// 		super("Line " + parser.getLineNumber() + ", column " + parser.getColumn() + ": " + message, cause);
// 	}
// 
// 	public YamlReaderException (String message) {
// 		this(message, null);
// 	}
// }


import java.io.StringWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.esotericsoftware.yamlbeans.YamlReader.YamlReaderException;
import junit.framework.TestCase;

		assertEquals(null, reader.get("1"));
		reader.read();
		assertEquals("test", reader.get("1"));

		reader.read();
		assertEquals("222", reader.get("1"));
		assertEquals("111", reader.get("2"));
	}

	public void testGetAnchorsUseGuessNumberTypes() throws YamlException {
		String yaml = "number: &1 123";
		YamlReader reader = new YamlReader(yaml);
		reader.read();
		assertEquals("123", reader.get("1"));

		YamlConfig yamlConfig = new YamlConfig();
		yamlConfig.readConfig.guessNumberTypes = true;
		reader = new YamlReader(yaml, yamlConfig);
		reader.read();
		assertEquals(123, ((Long) reader.get("1")).intValue());
	}

	public void testAnchorAndAlias() throws YamlException {
		String yaml = "key: &1 value\nkey1: *1\n---\nkey: *1";
		YamlReader reader = new YamlReader(yaml);
		assertEquals("value", ((Map<String, String>) reader.read()).get("key1"));
		assertEquals("value", reader.get("1"));

		try {
			reader.read();

// Path: src/com/esotericsoftware/yamlbeans/YamlReader.java
// public class YamlReaderException extends YamlException {
// 	public YamlReaderException (String message, Throwable cause) {
// 		super("Line " + parser.getLineNumber() + ", column " + parser.getColumn() + ": " + message, cause);
// 	}
// 
// 	public YamlReaderException (String message) {
// 		this(message, null);
// 	}
// }


// Path: test/com/esotericsoftware/yamlbeans/YamlReaderTest.java
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import com.esotericsoftware.yamlbeans.YamlReader.YamlReaderException;
import junit.framework.TestCase;

		assertEquals(null, reader.get("1"));
		reader.read();
		assertEquals("test", reader.get("1"));

		reader.read();
		assertEquals("222", reader.get("1"));
		assertEquals("111", reader.get("2"));
	}

	public void testGetAnchorsUseGuessNumberTypes() throws YamlException {
		String yaml = "number: &1 123";
		YamlReader reader = new YamlReader(yaml);
		reader.read();
		assertEquals("123", reader.get("1"));

		YamlConfig yamlConfig = new YamlConfig();
		yamlConfig.readConfig.guessNumberTypes = true;
		reader = new YamlReader(yaml, yamlConfig);
		reader.read();
		assertEquals(123, ((Long) reader.get("1")).intValue());
	}

	public void testAnchorAndAlias() throws YamlException {
		String yaml = "key: &1 value\nkey1: *1\n---\nkey: *1";
		YamlReader reader = new YamlReader(yaml);
		assertEquals("value", ((Map<String, String>) reader.read()).get("key1"));
		assertEquals("value", reader.get("1"));

		try {
			reader.read();

		} catch (YamlReaderException e) {
