public function testIsSortedWithUnsortedSource()
{
$unsortedSource = $this->getMockBuilder('phpstreams\\Stream')->disableOriginalConstructor()->getMock();
$unsortedSource->expects($this->once())->method('isSorted')->willReturn(false);
$instance = new Stream($unsortedSource);
$this->assertFalse($instance->isSorted());
}