public function testAvoidDuplicates()
{
$spec = 'example.org';
$listener = $this->buildSimpleListener(array('default-src' => $spec, 'script-src' => $spec, 'object-src' => $spec, 'style-src' => $spec, 'img-src' => $spec, 'media-src' => $spec, 'frame-src' => $spec, 'font-src' => $spec, 'connect-src' => $spec));
$response = $this->callListener($listener, '/', true);
$header = $response->headers->get('Content-Security-Policy');
$this->assertEquals('default-src example.org', $header, 'Response should contain only the default as the others are equivalent');
}