public Object invoke(Object proxy, Method method, Object[] arguments) throws Throwable {
return invocationHandler.invoke(mockInstance == null ? proxy : mockInstance, method, arguments);
}
public MocksControl.MockType getMockType() {
final MocksControl control = invocationHandler.getControl();
if (WhiteboxImpl.getFieldsOfType(control, MocksControl.MockType.class).isEmpty()) {
// EasyMock is of version 3.2+
final MockType mockType = WhiteboxImpl.getInternalState(control, MockType.class);
switch (mockType) {
case DEFAULT: