public function testApiWith_SetsProtocol()
{
$encoder = $this->createEncoder();
$protocol = $this->getProtectedProperty($encoder, 'protocol');
$this->assertSame(null, $protocol);
$encoder->with($new = $this->createProtocol());
$protocol = $this->getProtectedProperty($encoder, 'protocol');
$this->assertSame($new, $protocol);
}