@Test
public void listPlansWithPageable() {

     PageableDTO pageableDTO = new PageableDTO();
     pageableDTO.setLimit(10);
     pageableDTO.setOffset(0);
     ArrayList<Plan> listPlans = new ArrayList<>();
     this.plan.setName("Plan Name");
     listPlans.add(plan);
     Page<Plan> page = new PageImpl<>(listPlans);
     Mockito.when(this.planRepository.findAll(Mockito.any(Example.class), Mockito.any(Pageable.class)))
            .thenReturn(page);
     PlanPage planPageResp = this.planService.list(this.planDTO, pageableDTO);
     assertEquals(1L, planPageResp.getTotalElements());
     Mockito.verify(this.planRepository, Mockito.times(1))
            .findAll(Mockito.any(Example.class), Mockito.any(Pageable.class));
}