### Question:
OpenAMClientRegistration implements OpenIdConnectClientRegistration { @VisibleForTesting List<String> languageStrings(Locale locale) { List<String> strings = new ArrayList<String>(); String localeString = locale.toString(); for (int separator = localeString.lastIndexOf('_'); separator > -1; separator = localeString.lastIndexOf('_')) { if (!localeString.endsWith("_")) { strings.add(localeString); } localeString = localeString.substring(0, separator); } if (!localeString.isEmpty()) { strings.add(localeString); } return strings; } OpenAMClientRegistration(AMIdentity amIdentity, PEMDecoder pemDecoder, OpenIdResolverService resolverService,
            OAuth2ProviderSettings providerSettings, ClientAuthenticationFailureFactory failureFactory); Set<URI> getRedirectUris(); @Override Set<URI> getPostLogoutRedirectUris(); Set<String> getAllowedResponseTypes(); String getClientSecret(); String getClientId(); String getAccessTokenType(); String getDisplayName(Locale locale); String getDisplayDescription(Locale locale); Map<String, String> getScopeDescriptions(Locale locale); Map<String, String> getClaimDescriptions(Locale locale); Set<String> getDefaultScopes(); Set<String> getAllowedScopes(); boolean isConfidential(); String getClientSessionURI(); ClientType getClientType(); long getAuthorizationCodeLifeTime(OAuth2ProviderSettings providerSettings); long getAccessTokenLifeTime(OAuth2ProviderSettings providerSettings); long getRefreshTokenLifeTime(OAuth2ProviderSettings providerSettings); long getJwtTokenLifeTime(OAuth2ProviderSettings providerSettings); String getIDTokenSignedResponseAlgorithm(); @Override boolean isIDTokenEncryptionEnabled(); @Override String getIDTokenEncryptionResponseAlgorithm(); @Override String getIDTokenEncryptionResponseMethod(); @Override PublicKey getIDTokenEncryptionPublicKey(); String getTokenEndpointAuthMethod(); String getSubjectType(); @Override boolean verifyJwtIdentity(final OAuth2Jwt jwt); @Override boolean isConsentImplied(); @Override boolean isPolicyBasedProtectionEnabled(); @Override URI getSectorIdentifierUri(); String getSubValue(String id, OAuth2ProviderSettings providerSettings);  }### Answer:
@Test(dataProvider = "locales") public void testLanguageStrings(Locale locale, List<String> expected) throws Exception { assertThat(clientRegistration.languageStrings(locale)).isEqualTo(expected); }