@Test
public void listArray() {

    PageableDTO pageableDTO = new PageableDTO();
    pageableDTO.setLimit(10);
    pageableDTO.setOffset(0);
    List<Developer> developers = new ArrayList<>();
    developers.add(developer);
    Mockito.when(developerRepository.findAll(Mockito.any(Example.class))).thenReturn(developers);
    List<Developer> developersResult = developerService.list(developerDTO);
    assertEquals(developers, developersResult);
}