### Question:
OAuthClientDetailsService { public void fillDefaultValues(OAuthClientDetails oauthClientDetails) { oauthClientDetails.setResourceIds(defaultResourceIds); oauthClientDetails.setScope(defaultScope); oauthClientDetails.setAuthorizedGrantTypes(defaultAuthorizedGrantTypes); oauthClientDetails.setAuthorities(defaultAuthorities); oauthClientDetails.setAdditionalInformation(defaultAdditionalInformation); oauthClientDetails.setAutoapprove(defaultAutoapprove); }  void fillDefaultValues(OAuthClientDetails oauthClientDetails); void encodeClientSecret(OAuthClientDetails oauthClientDetails); OAuthClientDetails getOAuthClientDetails(); void updateOAuthClientDetails(OAuthClientDetails oauthClientDetails);  }### Answer:
@Test public void fillDefaultValues_fillsValues() { oauthClientDetailsService.fillDefaultValues(oauthClientDetails); assertEquals("oauth2-resource", oauthClientDetails.getResourceIds()); assertEquals("USER", oauthClientDetails.getScope()); assertEquals("password,refresh_token", oauthClientDetails.getAuthorizedGrantTypes()); assertEquals("", oauthClientDetails.getAuthorities()); assertEquals("{}", oauthClientDetails.getAdditionalInformation()); assertEquals("", oauthClientDetails.getAutoapprove()); }