assertOut("<a a1='a1v'><aa/><ab ab1='ab1v' ab2='ab2v'/></a>");
}
@Test
public void testSubElementsAndManyAttributesWithAutomaticEnd() {
RootWithAutomaticEnd xml = SimpleXml.withAutomaticEnd().to(outWriter);
ElementsWithAutomaticEnd elements = xml.body();
elements.e("a").a("a1", "a1v").e("aa").end().e("ab").a("ab1", "ab1v")
.a("ab2", "ab2v").end().end();
assertOut("<a a1='a1v'><aa/><ab ab1='ab1v' ab2='ab2v'/></a>");
}