diff --git a/proxy/spec/util.spec.js b/proxy/spec/util.spec.js
index f48365d2e5086e3395c1dee240e7be2a70fc6f4d..6eb5be496a6d26a5bb27b919d995019686fed81a 100644
--- a/proxy/spec/util.spec.js
+++ b/proxy/spec/util.spec.js
@@ -238,7 +238,7 @@ describe('Params', function() {
 
     var DEFAULT = 77;
     var getByteCount = function(query) {
-      return Params.getByteCount(Query.parse(query), 'param', DEFAULT);
+      return Params.getByteCount(new URLSearchParams(query), 'param', DEFAULT);
     };
 
     it('supports default values', function() {