### Question:
RequestDAO implements Cleanable { @RequiresSession public List<Long> findAllRequestIds(int limit, boolean ascending) { String sort = "ASC"; if (!ascending) { sort = "DESC"; } String sql = MessageFormat.format(REQUEST_IDS_SORTED_SQL, sort); TypedQuery<Long> query = entityManagerProvider.get().createQuery(sql, Long.class); query.setMaxResults(limit); return daoUtils.selectList(query); }  @RequiresSession RequestEntity findByPK(Long requestId); @RequiresSession List<RequestEntity> findByPks(Collection<Long> requestIds); @RequiresSession List<RequestEntity> findByPks(Collection<Long> requestIds, boolean refreshHint); @RequiresSession List<RequestEntity> findAll(); @RequiresSession List<Long> findAllRequestIds(int limit, boolean ascending); @RequiresSession List<RequestResourceFilterEntity> findAllResourceFilters(); @RequiresSession boolean isAllTasksCompleted(long requestId); @RequiresSession Long getLastStageId(long requestId); @Transactional RequestEntity updateStatus(long requestId, HostRoleStatus status, HostRoleStatus displayStatus); @Transactional void create(RequestEntity requestEntity); @Transactional RequestEntity merge(RequestEntity requestEntity); @Transactional void remove(RequestEntity requestEntity); @Transactional void removeByPK(Long requestId); @RequiresSession List<Long> findAllRequestIds(int limit, boolean sortAscending, Long clusterId); List<StageEntityPK> findRequestAndStageIdsInClusterBeforeDate(Long clusterId, long  beforeDateMillis); @Transactional @Override long cleanup(TimeBasedCleanupPolicy policy);  }### Answer:
@Test public void testFindAllRequestIds() throws Exception { RequestDAO dao = injector.getInstance(RequestDAO.class); List<Long> list = dao.findAllRequestIds(0, true); Assert.assertEquals(0, list.size()); }