### Question:
ProfileEntryEngineClient { public ProfileEntry getProfileEntry(final Long id) { try { return profileApi.getProfileEntry(id); } catch (final InvalidSessionException e) { throw new APIException(e); } catch (final ProfileEntryNotFoundException e) { throw new APIItemNotFoundException(ProfileEntryDefinition.TOKEN, APIID.makeAPIID(id)); } } protected  ProfileEntryEngineClient(final ProfileAPI profileApi); ProfileEntry getProfileEntry(final Long id); SearchResult<ProfileEntry> searchProfiles(final SearchOptions options); List<ProfileEntry> getProfileEntriesByProfile(final Long profileId); List<ProfileEntry> getAllChildsOfAProfileEntry(final Long id);  }### Answer:
@Test public void getProfileEntryItem_call_engine_and_get_profile_entry_with_specific_id() throws ProfileEntryNotFoundException { engineClient.getProfileEntry(1L); verify(profileAPI).getProfileEntry(1L); }
@Test(expected = APIItemNotFoundException.class) public void getProfileEntryItem_call_engine_and_if_profile_entry_not_found_raises_ProfileEntryException() throws APIItemNotFoundException, ProfileEntryNotFoundException { doThrow(new APIItemNotFoundException("profile entry not found", APIID.makeAPIID(-1L))).when(profileAPI).getProfileEntry(-1L); engineClient.getProfileEntry(-1L); }