Fake HTTP back end in Protractor end-to-end tests similarly to how it's done in AngularJS unit tests.