### Question:
DbGetAction extends Action<DbGetAction> { public static String stripTerms(String url, String... tokens) { Url u = new Url(url); u.clearParams(tokens); return u.toString(); }  static String stripTerms(String url, String... tokens); @Override void run(Request req, Response res); int getMaxRows(); DbGetAction withMaxRows(int maxRows);  }### Answer:
@Test public void testStripTerms1() { String[][] tests = { { "http: "http: "offset" }, { "http: "http: "offest", "page", "pageNum" }, { "http: "http: "limit" }, { "http: "http: "sort" } }; for (String[] test : tests) { String[] toStrip = new String[test.length - 2]; System.arraycopy(test, 2, toStrip, 0, toStrip.length); String stripped = DbGetAction.stripTerms(test[1], toStrip); if (!test[0].equals(stripped)) { System.out.println("RESULTS DON'T MATCH"); System.out.println(" EXPECTED: " + test[0]); System.out.println(" FOUND : " + stripped); fail(); } } }