@Override
    public Optional<Customer> findPublicCustomerByTenantId(UUID tenantId) {
        return Optional.ofNullable(DaoUtil.getData(customerRepository.findPublicCustomerByTenantId(tenantId)));
    }
@Test
    public void testFindPublicCustomerByTenantId() {
        UUID tenantId = Uuids.timeBased();

        Optional<Customer> customerOpt = customerDao.findPublicCustomerByTenantId(tenantId);
        assertTrue(customerOpt.isEmpty());

        String publicCustomerTitle = StringUtils.randomAlphanumeric(10);
        createPublicCustomer(tenantId, publicCustomerTitle);
        customerOpt = customerDao.findPublicCustomerByTenantId(tenantId);
        assertTrue(customerOpt.isPresent());
        Customer customer = customerOpt.get();
        assertTrue(customer.isPublic());
        assertEquals(publicCustomerTitle, customer.getTitle());
    }