source: class JpaDeviceDaoTest extends JpaAbstractSearchTextDao<DeviceEntity, Device> {
  
      @Autowired
      private DeviceDao deviceDao;
  
      @Test
      public void testFindDevicesByTenantId() {
  
target:         UUID tenantId1 = UUIDs.timeBased();
          UUID tenantId2 = UUIDs.timeBased();
          UUID customerId1 = UUIDs.timeBased();
          UUID customerId2 = UUIDs.timeBased();
          createDevices(tenantId1, tenantId2, customerId1, customerId2, 40);
  
          TextPageLink pageLink1 = new TextPageLink(15, "SEARCH_TEXT");
          List<Device> devices1 = deviceDao.findDevicesByTenantId(tenantId1, pageLink1);
          assertEquals(15, devices1.size());
  
          TextPageLink pageLink2 = new TextPageLink(15, "SEARCH_TEXT",  devices1.get(14).getId().getId(), null);
          List<Device> devices2 = deviceDao.findDevicesByTenantId(tenantId1, pageLink2);
          assertEquals(5, devices2.size());
      }
  
  }