public function buildPrependsBaseUriIfCreateAbsoluteUriIsSet()
{
$this->mockHttpRequest->expects($this->atLeastOnce())->method('getBaseUri')->will($this->returnValue('http://www.domain.tld/document-root/'));
$this->mockRouter->expects($this->once())->method('resolve')->will($this->returnValue('resolvedUri'));
$this->uriBuilder->setCreateAbsoluteUri(true);
$expectedResult = 'http://www.domain.tld/document-root/resolvedUri';
$actualResult = $this->uriBuilder->build();
$this->assertEquals($expectedResult, $actualResult);
}