### Question:
JpaPortalPreferenceRepository implements PortalPreferenceRepository { @Override public List<PortalPreference> getLimitedList(int offset, int pageSize) { final TypedQuery<JpaPortalPreference> query = manager.createNamedQuery(JpaPortalPreference.GET_ALL, JpaPortalPreference.class); return CollectionUtils.<PortalPreference>toBaseTypedList(getPagedResultList(query, offset, pageSize)); }  @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 testGetLimitedList(){ final List<PortalPreference> preferences = repository.getLimitedList(1, 1); assertTrue(preferences.size() == 1); }