### Question:
JpaPortalPreferenceRepository implements PortalPreferenceRepository { @Override public List<PortalPreference> getAll() { final TypedQuery<JpaPortalPreference> query = manager.createNamedQuery(JpaPortalPreference.GET_ALL, JpaPortalPreference.class); return CollectionUtils.<PortalPreference>toBaseTypedList(query.getResultList()); }  @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 testGetAll() { final List<PortalPreference> preferences = repository.getAll(); assertTrue(preferences.size() == 2); }