protected function easySpy($classname, array $methods = array())
    {
        if ($classname instanceof MockObject) {
            $mock = $classname;
        } else {
            $mock = $this->doCreateMock($classname);
        }

        foreach ($methods as $method => $return) {
            $this->mockMethod($mock, $method, new InvokedAtLeastOnce, $return);
        }

        return $mock;
    }