}
private Object createDynamicProxyMock(Class<?> mockType, List<Class<?>> additionalInterfaces,
List<Object> constructorArgs, IProxyBasedMockInterceptor mockInterceptor, ClassLoader classLoader) {
if (constructorArgs != null) {
throw new InvalidSpecException("Interface based mocks may not have constructor arguments");
}
List<Class<?>> interfaces = new ArrayList<Class<?>>();
interfaces.add(mockType);
interfaces.addAll(additionalInterfaces);
interfaces.add(ISpockMockObject.class);