Add tests for calling generate with a route object.
Fixes passing route object to the generate object.
Merge pull request #67 from dawehner/generate-route-object

Generate route object
1.0 branch is still compatible with symfony 2.1, need to use the deprecated setPattern method
Merge branch '1.0'
do not use deprecated method in test in the master branch