// Path: src/com/esotericsoftware/yamlbeans/YamlConfig.java
// public static enum WriteClassName {
// 	ALWAYS, NEVER, AUTO
// }


import com.esotericsoftware.yamlbeans.YamlConfig.WriteClassName;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
            + "- 100500" + LINE_SEPARATOR
            + "- 10" + LINE_SEPARATOR
            + "stringMap: " + LINE_SEPARATOR
            + "   a: av" + LINE_SEPARATOR
            + "   b: bv" + LINE_SEPARATOR
            + "structList: " + LINE_SEPARATOR
            + "-  i: 10" + LINE_SEPARATOR
            + "   str: aaa" + LINE_SEPARATOR
            + "-  i: 20" + LINE_SEPARATOR
            + "   str: bbb" + LINE_SEPARATOR
            + "structMap: " + LINE_SEPARATOR
            + "   a: " + LINE_SEPARATOR
            + "      i: 1" + LINE_SEPARATOR
            + "      str: aa" + LINE_SEPARATOR
            + "   b: " + LINE_SEPARATOR
            + "      i: 2" + LINE_SEPARATOR
            + "      str: ab" + LINE_SEPARATOR;

    public void testRead() throws YamlException {
        Test test = createTest();

        Test read = new YamlReader(YAML).read(Test.class);
        Assert.assertEquals(test, read);
    }

    public void testWrite() throws YamlException {
        Test test = createTest();
        StringWriter stringWriter = new StringWriter();

        YamlWriter yamlWriter = new YamlWriter(stringWriter);
// Path: src/com/esotericsoftware/yamlbeans/YamlConfig.java
// public static enum WriteClassName {
// 	ALWAYS, NEVER, AUTO
// }


// Path: test/com/esotericsoftware/yamlbeans/GenericTest.java
import com.esotericsoftware.yamlbeans.YamlConfig.WriteClassName;
import junit.framework.Assert;
import junit.framework.TestCase;
import java.io.StringWriter;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

            + "- 100500" + LINE_SEPARATOR
            + "- 10" + LINE_SEPARATOR
            + "stringMap: " + LINE_SEPARATOR
            + "   a: av" + LINE_SEPARATOR
            + "   b: bv" + LINE_SEPARATOR
            + "structList: " + LINE_SEPARATOR
            + "-  i: 10" + LINE_SEPARATOR
            + "   str: aaa" + LINE_SEPARATOR
            + "-  i: 20" + LINE_SEPARATOR
            + "   str: bbb" + LINE_SEPARATOR
            + "structMap: " + LINE_SEPARATOR
            + "   a: " + LINE_SEPARATOR
            + "      i: 1" + LINE_SEPARATOR
            + "      str: aa" + LINE_SEPARATOR
            + "   b: " + LINE_SEPARATOR
            + "      i: 2" + LINE_SEPARATOR
            + "      str: ab" + LINE_SEPARATOR;

    public void testRead() throws YamlException {
        Test test = createTest();

        Test read = new YamlReader(YAML).read(Test.class);
        Assert.assertEquals(test, read);
    }

    public void testWrite() throws YamlException {
        Test test = createTest();
        StringWriter stringWriter = new StringWriter();

        YamlWriter yamlWriter = new YamlWriter(stringWriter);
        yamlWriter.getConfig().writeConfig.setWriteClassname(WriteClassName.NEVER);