### Question:
LdapUserDetailsContextMapper implements UserDetailsContextMapper { @Override public void mapUserToContext(UserDetails user, DirContextAdapter ctx) { } LdapUserDetailsContextMapper(UserService userService, NewAccountService newAccountService,
                                        String mailAttributeName, String displayNameAttributeName,
                                        String pageLayoutCode); @Override UserDetails mapUserFromContext(DirContextOperations ctx, String username,
                                          Collection<? extends GrantedAuthority> authorities); @Override void mapUserToContext(UserDetails user, DirContextAdapter ctx);  }### Answer:
@Test public void testMapUserToContext() throws Exception { User user = new UserImpl(); DirContextAdapter adapter = new DirContextAdapter(); contextMapper.mapUserToContext(user, adapter); assertTrue("Nothing happened", true); }