### Question:
MongoDbUserConverter implements HydratingModelConverter<User, MongoDbUser> { @Override public MongoDbUser convert(User source) { MongoDbUser user = source instanceof MongoDbUser ? (MongoDbUser)source : new MongoDbUser(); List<String> authorityCodes = Lists.newArrayList(); for(GrantedAuthority authority : source.getAuthorities()) { authorityCodes.add(authority.getAuthority()); } user.setAuthorityCodes(authorityCodes); updateProperties(source, user); return user; }  @Override void hydrate(MongoDbUser dehydrated); @Override Class<User> getSourceType(); void setPageLayoutRepository(PageLayoutRepository pageLayoutRepository); PageLayoutRepository getPageLayoutRepository(); @Override MongoDbUser convert(User source);  }### Answer:
@Test public void convert_Null_DefaultPageLayoutCode(){ User source = new UserImpl(); User converted = userConverter.convert(source); assertNull(converted.getDefaultPageLayoutCode()); }