assertEquals("final", modifiers[0]);
assertEquals("public", modifiers[1]);
}
public void testAddMethodsToCorrectClass() throws Exception {
builder.beginClass(new ClassDef());
builder.addMethod(new MethodDef());
builder.endClass();
builder.beginClass(new ClassDef());
builder.addMethod(new MethodDef());
builder.addMethod(new MethodDef());
builder.addMethod(new MethodDef());
builder.endClass();
builder.beginClass(new ClassDef());
builder.addMethod(new MethodDef());
builder.addMethod(new MethodDef());
builder.endClass();
JavaSource source = builder.getSource();