Oops, missed the placement of a )
Add encoding to mock objects where required.