public function createPartialMock(
        ReflectionClass $class,
        $arguments = []
    ): Mock {
        $mock = $class->newInstanceWithoutConstructor();
        $handle = $this->handleFactory
            ->instanceHandle($mock, strval($this->labelSequencer->next()));
        $handle->partial();

        if (null !== $arguments) {
            $handle->constructWith($arguments);
        }

        return $mock;
    }