public function testWriteAndRead()
{
$stream = new Stream($this->_testConfig);
$this->assertInternalType('resource', $stream->open());
$this->assertInternalType('resource', $stream->resource());
$result = $stream->write();
$this->assertEqual(84, $result);
$this->assertPattern("/^HTTP/", (string) $stream->read());
}