public function testIsSortedWithSortedSource()
{
$sortedSource = $this->getMockBuilder('phpstreams\\Stream')->disableOriginalConstructor()->getMock();
$sortedSource->expects($this->once())->method('isSorted')->willReturn(true);
$instance = new Stream($sortedSource);
$this->assertTrue($instance->isSorted());
}