### Question:
OpenAMClientRegistration implements OpenIdConnectClientRegistration { private List<String[]> getDisplayDescription() { try { Set<String> displayDescription = amIdentity.getAttribute(OAuth2Constants.OAuth2Client.DESCRIPTION); return splitPipeDelimited(convertAttributeValues(displayDescription), "name").get("name"); } catch (Exception e){ logger.error("Unable to get {} from repository", OAuth2Constants.OAuth2Client.DESCRIPTION, e); throw OAuthProblemException.OAuthError.SERVER_ERROR.handle(Request.getCurrent(), "Unable to get "+ OAuth2Constants.OAuth2Client.DESCRIPTION +" from repository"); } } 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(); String getTokenEndpointAuthMethod(); String getSubjectType(); @Override boolean verifyJwtIdentity(OAuth2Jwt jwt); @Override URI getSectorIdentifierUri(); String getSubValue(String id, OAuth2ProviderSettings providerSettings);  }### Answer:
@Test public void testGetDisplayDescription() throws Exception { when(amIdentity.getAttribute(DESCRIPTION)).thenReturn(asSet("[0]=Desc1", "[1]=en|Desc2", "[2]=en_GB|Desc3")); String desc = clientRegistration.getDisplayDescription(Locale.UK); assertThat(desc).isEqualTo("Desc3"); }