### Question:
LocalizationScriptService implements ScriptService { public String render(String key) { return render(key, (Collection<?>) null); }  Translation get(String key); Translation get(String key, Locale locale); boolean use(String bundleType, String bundleId); Locale getCurrentLocale(); Locale toLocale(String str); String render(String key); String render(Collection<String> keys); String render(String key, Locale locale); String render(Collection<String> keys, Locale locale); String render(String key, Collection<?> parameters); String render(Collection<String> keys, Collection<?> parameters); String render(String key, Collection<?> parameters, Locale locale); String render(Collection<String> keys, Collection<?> parameters, Locale locale); String render(String key, Syntax syntax); String render(Collection<String> keys, Syntax syntax); String render(String key, Syntax syntax, Locale locale); String render(Collection<String> keys, Syntax syntax, Locale locale); String render(String key, Syntax syntax, Collection<?> parameters); String render(Collection<String> keys, Syntax syntax, Collection<?> parameters); String render(String key, Syntax syntax, Collection<?> parameters, Locale locale); String render(Collection<String> keys, Syntax syntax, Collection<?> parameters, Locale locale); Set<Locale> getAvailableLocales();  }### Answer:
@Test public void render() throws Exception { assertEquals("print result", localizationScriptService.render("key")); assertEquals("print result", localizationScriptService.render(Arrays.asList(null, "not existing key", "key", "another key"))); }
@Test public void renderWithSyntax() throws Exception { assertEquals("print result", localizationScriptService.render("key", Syntax.PLAIN_1_0)); assertEquals("print result", localizationScriptService .render(Arrays.asList(null, "not existing key", "key", "another key"), Syntax.PLAIN_1_0)); }
@Test public void renderWithSyntaxAndParameters() throws Exception { assertEquals("print result", localizationScriptService.render("key", Syntax.PLAIN_1_0, Arrays.asList())); assertEquals("print result", localizationScriptService .render(Arrays.asList(null, "not existing key", "key", "another key"), Syntax.PLAIN_1_0, Arrays.asList())); }
@Test public void renderWithParameters() throws Exception { assertEquals("print result", localizationScriptService.render("key", Arrays.asList())); assertEquals("print result", localizationScriptService .render(Arrays.asList(null, "not existing key", "key", "another key"), Arrays.asList())); }