public function getResponse($key, $expectedResponse = null) {
    if (isset($expectedResponse)) {
      return $expectedResponse;
    }

    if (!isset($this->_responses[$key])) {
      throw new InvalidArgumentException("Response value for $key is not available");
    }

    return $this->_responses[$key];
  }