public function testFilter() {
$this->fm
->expects($this
->once())
->method('get')
->with('foo')
->will($this
->returnValue($this
->getMock('Assetic\\Filter\\FilterInterface')));
$asset = $this->factory
->createAsset(array(), array(
'foo',
));
$this
->assertEquals(1, count($asset
->getFilters()), '->createAsset() adds filters');
}