public static function mock($namespace, $name)
    {
        $delegateBuilder = new MockDelegateFunctionBuilder();
        $delegateBuilder->build($name);
        
        $mockeryMock = Mockery::mock($delegateBuilder->getFullyQualifiedClassName());
        $mockeryMock->makePartial()->shouldReceive(MockDelegateFunctionBuilder::METHOD);

        $builder = new MockBuilder();
        $builder->setNamespace($namespace)
                ->setName($name)
                ->setFunctionProvider($mockeryMock);
        $mock = $builder->build();
        $mock->enable();
        
        $disabler = new MockDisabler($mock);
        Mockery::getContainer()->rememberMock($disabler);
        
        return new ExpectationProxy($mockeryMock);
    }