@Test
public void testFull() {
@SuppressWarnings("unchecked")
final Doc doc = new Doc("EmitterTest", Pkg._Pkg(Util.list(_JavaDocComment("/**", list(_JDWhiteSpace(" "), _JDWord("hello"), _JDWhiteSpace(" ")), Util.<JDTagSection>list(), "*/")), "some.package"), list(Imprt._Imprt(Util.list(_JavaBlockComment(list(list(_BlockWord("/* hello */"))))), "wow.man"), Imprt._Imprt(Util.list(_JavaEOLComment("// hello")), "flim.flam")), list(
new DataType(NO_COMMENTS, NO_ANNOTATIONS, "FooBar", Util.<String>list(), NO_EXTENDS, NO_IMPLEMENTS, list(
new Constructor(NO_COMMENTS, "Foo", list(
new Arg(Util.<ArgModifier>list(), _Primitive(_IntType()), "yeah"),
new Arg(Util.<ArgModifier>list(), _Ref(_ClassType("String", Util.<RefType>list())), "hmmm")
)),
new Constructor(NO_COMMENTS, "Bar", Util.<Arg>list())
)),
new DataType(NO_COMMENTS, NO_ANNOTATIONS, "Whatever", Util.<String>list(), NO_EXTENDS, NO_IMPLEMENTS, list(
new Constructor(NO_COMMENTS, "Whatever", Util.<Arg>list())
))
));
final StringSinkFactory factory = new StringSinkFactory("whatever");
final DocEmitter emitter = new StandardDocEmitter(new DummyDataTypeEmitter());