### Question:
UserProfileToUserProfileV4ResponseConverter extends AbstractConversionServiceAwareConverter<UserProfile, UserProfileV4Response> { @Override public UserProfileV4Response convert(UserProfile entity) { UserProfileV4Response userProfileV4Response = new UserProfileV4Response(); userProfileV4Response.setUsername(entity.getUserName()); userProfileV4Response.setUserId(entity.getUser().getUserId()); userProfileV4Response.setTenant(entity.getUser().getTenant().getName()); return userProfileV4Response; }  @Override UserProfileV4Response convert(UserProfile entity);  }### Answer:
@Test public void testConvertPassesAllUserRelatedData() { UserProfile source = new UserProfile(); source.setUser(user); source.setUserName("some@email.com"); UserProfileV4Response result = underTest.convert(source); Assert.assertNotNull(result); Assert.assertEquals(source.getUserName(), result.getUsername()); Assert.assertEquals(tenant.getName(), result.getTenant()); Assert.assertEquals(user.getUserId(), result.getUserId()); }