it('is called with a coordinate', function () {
      var stub = null, args = null,
          successSpy = sinon.spy(), errorSpy = sinon.spy();

      stub = sinon.stub(geocoder, 'submitRequest');

      geocoder.reverse(40.0755, -76.329999, successSpy, errorSpy);
      expect(stub.callCount).to.equal(1);

      args = stub.getCall(0).args;
      expect(args[0]).to.deep.equal({location: '40.0755,-76.329999'});
      stub.restore();
    });
    it('should call the error callback', function () {
      var stub = null, successSpy = sinon.spy(), errorSpy = sinon.spy();

        stub = sinon.stub(geocoder, 'submitRequest',
        function (params, url, successCallback, errorCallback) {
          errorCallback({});
        });

        geocoder.reverse(40.0755, -76.329999, successSpy, errorSpy);

        expect(successSpy.callCount).to.equal(0);
        expect(errorSpy.callCount).to.equal(1);
        stub.restore();
    });
var reverse = function (/*evt*/) {
  a.value = '';
  g.reverse(y.value, x.value, onSuccess, onFailure);
};