// expectations
MethodDef mth = new MethodDef();
mth.name = "MyClass";
mth.constructor = true;
mth.modifiers.add("public");
FieldDef p1 = new FieldDef();
p1.name = "count";
p1.type = "int";
mth.params.add(p1);
FieldDef p2 = new FieldDef();
p2.name = "thingy";
p2.type = "java.lang.String";
mth.params.add(p2);
builder.addExpectedAddMethodValues(mth);