@Test
public void listPageable() {

    PageableDTO pageableDTO = new PageableDTO();
    pageableDTO.setLimit(10);
    pageableDTO.setOffset(0);
    List<Developer> developers = new ArrayList<>();
    developers.add(developer);
    Page<Developer> page = new PageImpl<>(developers);
    Mockito.when(developerRepository.findAll(Mockito.any(), Mockito.any(Pageable.class))).thenReturn(page);
    DeveloperPage list = developerService.list(developerDTO, pageableDTO);
    List<Developer> content = list.getContent();
    assertEquals(developers, content);
}