### Question:
PrettyURLBuilder { public List<UIParameter> extractParameters(final UIComponent component) { List<UIParameter> results = new ArrayList<UIParameter>(); for (UIComponent child : component.getChildren()) { if (child instanceof UIParameter) { final UIParameter param = (UIParameter) child; if (!param.isDisable()) { results.add(param); } } } return results; }  List<UIParameter> extractParameters(final UIComponent component); @Deprecated String build(final UrlMapping mapping, final Map<String, String[]> parameters); String build(final UrlMapping mapping, final boolean encodeUrl, final Map<String, String[]> parameters); @Deprecated String build(final UrlMapping mapping, final Object... parameters); String build(final UrlMapping mapping, final boolean encodeUrl, final Object... parameters); @Deprecated String build(final UrlMapping mapping, final RequestParameter... parameters); String build(final UrlMapping mapping, final boolean encodeUrl, final RequestParameter... parameters); @Deprecated String build(final UrlMapping urlMapping, final List<UIParameter> parameters); String build(final UrlMapping urlMapping, final boolean encodeUrl, final List<UIParameter> parameters);  }### Answer:
@Test public void testExtractParameters() { List<UIParameter> parameters = builder.extractParameters(link); assertEquals(5, parameters.size()); assertTrue(parameters.contains(param1)); assertTrue(parameters.contains(param2)); assertTrue(parameters.contains(param3)); assertTrue(parameters.contains(param4)); assertTrue(parameters.contains(param5)); }