String returnType,
String name,
String[] arguments
)
{
MethodInfo mi = createMock(MethodInfo.class);
expect(mi.getClassInfo()).andReturn(classInfo).anyTimes();
expect(mi.getModifiers()).andReturn(modifiers).anyTimes();
expect(mi.getName()).andReturn(name).anyTimes();
expect(mi.getReturnType()).andReturn(returnType).anyTimes();
expect(mi.getArgumentTypeNames()).andReturn(arguments).anyTimes();
expect(mi.isPrivate()).andReturn(Modifier.isPrivate(modifiers)).anyTimes();
expect(mi.isProtected()).andReturn(Modifier.isProtected(modifiers)).anyTimes();
expect(mi.isPublic()).andReturn(Modifier.isPublic(modifiers)).anyTimes();
replay(mi);
return mi;
}