9596979899100101102
private static DynamicMock dynamicMockFor(Class type, String name) { if (type.isInterface()) { return new CoreMock(type, name); } else { return new CGLIBCoreMock(type, name); } }