function testSetJsCompressorUnregistersPreviousBundleProcessor()
{
$bundleProcessors = $this->environment->bundleProcessors;
$this->environment->setJsCompressor('uglify_js');
$this->environment->setJsCompressor('yuglify_js');
$this->assertFalse($bundleProcessors->isRegistered($this->environment->contentType('.js'), '\\Pipe\\Compressor\\UglifyJs'));
}