public static function createFactory(callable $configureMockProvider = null) {
        $factory = new Factory();

        $provider = new MockProvider($factory);

        if ($configureMockProvider) {
            $configureMockProvider($provider);
        }

        $factory->setProvider('StdClass', $provider);
        return $factory;
    }