is this the correct way to mock parameters?