### Question:
ProfileEntryItemConverter extends ItemConverter<ProfileEntryItem, ProfileEntry> { @Override public ProfileEntryItem convert(ProfileEntry profileEntry) { ProfileEntryItem item = new ProfileEntryItem(); item.setId(profileEntry.getId()); item.setName(profileEntry.getName()); item.setProfileId(profileEntry.getProfileId()); item.setIndex(profileEntry.getIndex()); item.setType(profileEntry.getType()); item.setDescription(profileEntry.getDescription()); item.setParentId(profileEntry.getParentId()); item.setPage(profileEntry.getPage()); item.setIsCustom(profileEntry.isCustom()); if (item.isCustom() && profileEntry.getParentId() != 0) { item.setIcon(ProfileEntryItem.DEFAULT_ICON_BLACK); } else if (item.isCustom() && profileEntry.getParentId() == 0) { item.setIcon(ProfileEntryItem.DEFAULT_ICON_WHITE); } else { item.setIcon(""); } return item; }  @Override ProfileEntryItem convert(ProfileEntry profileEntry);  }### Answer:
@Test public void testWeCanConverteAProfileEntry() throws Exception { ProfileEntry profileEntry = anEngineProfileEntry().withCustomName("customName").build(); ProfileEntryItem item = new ProfileEntryItemConverter().convert(profileEntry); assertTrue(areEquals(aProfileEntryItem().from(profileEntry).build(), item)); }