### Question:
CustomRepositoryServiceImpl implements CustomRepositoryService { @Override @Transactional(readOnly = true) public Page<CustomRepository> findAll(Pageable pageable) { Page<CustomRepository> page = customRepositoryRepository .findByDeletedFalse(pageable); return page; }  @Override @Transactional CustomRepository save(CustomRepository customRepository); @Override @Transactional(readOnly = false) void logicalDelete(Long id); @Override @Transactional(readOnly = true) CustomRepository findByName(String name); @Override @Transactional(readOnly = true) Page<CustomRepository> findAll(Pageable pageable); @Override @Transactional(readOnly = true) ListMultimap<InstanceType, CustomRepository> getAllGroupByType(); @Override List<SimpleEntry<String, String>> getRemoteRepositories(
			InstanceType repoType, URL url); @Override List<SimpleEntry<String, String>> getRemoteRepositoriesByRepoId(
			Long repoId); @Override CustomRepository findById(Long id); @Override boolean checkExistActiveRepositoryNameAndType(String name,
			InstanceType type);  }### Answer:
@Test @DatabaseSetup("customRepositoryData.xml") public void testFindAll() { PageRequest pageable = new PageRequest(0, 2); Page<CustomRepository> page = customRepositoryService.findAll(pageable); Assert.assertNotNull(page); Assert.assertEquals(3, page.getTotalPages()); Assert.assertEquals(2, page.getNumberOfElements()); Assert.assertEquals(5, page.getTotalElements()); List<CustomRepository> customRepositories = page.getContent(); Assert.assertEquals(2, customRepositories.size()); }