mWriter = new StringWriter(); mSourcer = new AccessSourcer(new Output(mWriter));
mWriter = null; mSourcer = null;
mSourcer.write(Opcodes.ACC_ABSTRACT | Opcodes.ACC_PUBLIC, AccessSourcer.IS_CLASS); String s = mWriter.toString(); Assert.assertEquals("public abstract", s);
mSourcer.write(Opcodes.ACC_PRIVATE | Opcodes.ACC_FINAL | Opcodes.ACC_STATIC, AccessSourcer.IS_METHOD); String s = mWriter.toString(); Assert.assertEquals("private static final", s);