public <T extends IObject> T newMock(Environment env) throws Throwable {
        if (nativeConstructor == null) {
            env.error(env.trace(), ErrorType.E_CORE_ERROR, Messages.ERR_CANNOT_FIND_JAVA_CONSTRUCTOR, getName());
        }

        try {
            IObject object = (IObject) nativeConstructor.newInstance(env, this);
            object.setAsMock();
            return (T) object;
        } catch (InstantiationException e) {
            return null;
        }
    }
return empty list if success else list with not valid implemented methods in class

@param _interface
@return
jphp-runtime/src/php/runtime/reflection/ClassEntity.java