SparkCompleteJobServiceURLBuilderImpl implements ServiceURLBuilder { public String build(String url, String... parameters) { String newUrl = URLUtil.removeTrailingSlash(url); return newUrl + "/" + Constants.V2_APPS_URL + "?applicationTypes=SPARK&state=FINISHED&finishedTimeBegin=" + parameters[0] + "&" + Constants.ANONYMOUS_PARAMETER; }  String build(String url, String... parameters);  }
@Test public void testBuild() { SparkCompleteJobServiceURLBuilderImpl sparkCompleteJobServiceURLBuilderImpl = new SparkCompleteJobServiceURLBuilderImpl(); String finalUrl = sparkCompleteJobServiceURLBuilderImpl.build("http: Assert.assertEquals("http: }