@Override
    protected void validateDataImpl(TenantId tenantId, Tenant tenant) {
        validateString("Tenant title", tenant.getTitle());
        if (!StringUtils.isEmpty(tenant.getEmail())) {
            validateEmail(tenant.getEmail());
        }
    }
@Test
    void testValidateNameInvocation() {
        Tenant tenant = new Tenant();
        tenant.setTitle("Monster corporation ©");
        tenant.setEmail("support@thingsboard.io");

        validator.validateDataImpl(tenantId, tenant);
        verify(validator).validateString("Tenant title", tenant.getTitle());
    }