WicketUtil { public String constructLatinStringValue(final String ... values) { final StringBuilder css = new StringBuilder(); for (final String value : values) { for (final char c : value.toCharArray()) { if ((c >= 48 && c <= 57) || (c >= 65 && c <= 90) || (c >= 97 && c <= 122)) { css.append(c); } else { css.append((int) c); } } } return css.toString(); } WicketUtil();  WicketUtil(final CommandConfig commandConfig); HttpServletRequest getHttpServletRequest(); long getCategoryId(final PageParameters pageParameters); Map<String, String> pageParametersAsMap(final PageParameters pageParameters); Map<String, List<String>> pageParametersAsMultiMap(final PageParameters pageParameters); PageParameters getFilteredRequestParameters(final PageParameters parameters); PageParameters getFilteredRequestParameters(final PageParameters pageParameters,
                                                              final Collection<String> nameFilter); PageParameters getFilteredRequestParameters(final PageParameters parameters,
                                                              final String key,
                                                              final String value); PageParameters getRetainedRequestParameters(final PageParameters pageParameters,
                                                              final Set<String> nameFilter); int getSelectedItemsPerPage(final PageParameters pageParameters, final List<String> itemsPerPageValues); boolean isSelectedProductSortOnPage(final PageParameters pageParameters, final String sortOrder, final String sortField); boolean isSelectedPageActive(final PageParameters pageParameters, final String pageParameterName, final int page); String constructLatinStringValue(final String ... values); static StringResourceModel createStringResourceModel(final Component component,
                                                                final String resourceKey); static StringResourceModel createStringResourceModel(final Component component,
                                                                final String resourceKey,
                                                                final Map<String, Object> parameters);  }
@Test public void testConstructLatinStringValue() throws Exception { final CommandConfig commandConfig = context.mock(CommandConfig.class, "config"); assertEquals("color123", new WicketUtil(commandConfig).constructLatinStringValue("color", "123")); assertEquals("colorblue", new WicketUtil(commandConfig).constructLatinStringValue("color", "blue")); assertEquals("colorblue123", new WicketUtil(commandConfig).constructLatinStringValue("color", "blue", "123")); assertEquals("color10891080108510801081", new WicketUtil(commandConfig).constructLatinStringValue("color", "синий")); assertEquals("color10891080108510801081123", new WicketUtil(commandConfig).constructLatinStringValue("color", "синий", "123")); assertEquals("color910X1047910", new WicketUtil(commandConfig).constructLatinStringValue("color", "\t\nXЗ\t\n")); }