### Question:
URL { public static String redirectWithNamedParams(String url, Object... keyValuePairs) { return REDIRECT_PREFIX + filledURLWithNamedParams(url, keyValuePairs); } private  URL(); static String filledURL(String url, Object parameter); static String filledURL(String url); static String filledURLWithNamedParams(String url,
            Object... keyValuePairs); static String filledURL(String url, Map<String, ?> parameters); static String redirect(String url, Object parameter); static String redirect(String url); static String redirectWithNamedParams(String url,
            Object... keyValuePairs); static String redirect(String url,
            Map<String, String> namedParameters); static final String HOME; }### Answer:
@Test public void testRedirectStringStringArray() { final String templateString = "The {animal} jumped over the {target}."; final String result = URL.redirectWithNamedParams(templateString, "animal", "quick brown foxäöü", "target", "lazy dog"); assertThat(result) .isEqualTo( "redirect:The%20quick%20brown%20fox%C3%A4%C3%B6%C3%BC%20jumped%20over%20the%20lazy%20dog."); }