### Question:
JpaPortalPreferenceRepository implements PortalPreferenceRepository { @Override public PortalPreference get(String id) { return manager.find(JpaPortalPreference.class, Long.parseLong(id)); }  @Override List<PortalPreference> getAll(); @Override List<PortalPreference> getLimitedList(int offset, int pageSize); @Override int getCountAll(); @Override PortalPreference getByKey(String key); @Override Class<? extends PortalPreference> getType(); @Override PortalPreference get(String id); @Override PortalPreference save(PortalPreference item); @Override void delete(PortalPreference item);  }### Answer:
@Test public void get() { JpaPortalPreference p = (JpaPortalPreference) repository.get(VALID_ID.toString()); assertThat(p.getEntityId(), is(VALID_ID)); assertThat(p.getKey(), is("color")); assertThat(p.getValues().size(), is(3)); }