### Question:
PoulpeAuthPlugin extends StatefullPlugin implements AuthenticationPlugin, RegistrationPlugin { @Override public String translateLabel(String code, Locale locale) { String fullCode = "label.plugins.plugin.poulpe.property.name." + code; ResourceBundle messages = ResourceBundle.getBundle(MESSAGE_PATH, locale); if (messages.containsKey(fullCode)) { return messages.getString(fullCode); } else { ResourceBundle defaultMessages = ResourceBundle.getBundle(MESSAGE_PATH, new Locale(DEFAULT_LOCALE_CODE)); return defaultMessages.containsKey(fullCode) ? defaultMessages.getString(fullCode) : code; } }  @Override Map<String, String> registerUser(UserDto userDto, Long pluginId); @Override Map<String, String> validateUser(UserDto userDto, Long pluginId); @Override String getHtml(HttpServletRequest request, String pluginId, Locale locale); @Override Map<String, String> authenticate(String login, String password); @Override void activate(String username); @Override boolean supportsJCommuneVersion(String version); @Override String getName(); @Override List<PluginProperty> getConfiguration(); @Override List<PluginProperty> getDefaultConfiguration(); @Override String translateLabel(String code, Locale locale);  }### Answer:
@Test public void translateLabelWithExistingTranslation() { assertEquals("Url", plugin.translateLabel("Url", Locale.forLanguageTag("en"))); }
@Test public void translateLabelWithoutExistingTranslation() { assertEquals("Url1", plugin.translateLabel("Url1", Locale.forLanguageTag("en"))); }