@@ -0,0 +1,1796 @@
+package org.ovirt.engine.core.common.utils;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0Aimport java.util.Arrays;%0Aimport java.util.Collection;%0Aimport java.util.Set;%0A%0Aimport javax.validation.ConstraintViolation;%0Aimport javax.validation.Validator;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.ovirt.engine.core.common.validation.annotation.ValidName;%0A%0A@RunWith(Parameterized.class)%0Apublic class ValidNameValidatorTest %7B%0A%0A    private Validator validator;%0A    private String name;%0A    private boolean expectedResult;%0A%0A    public ValidNameValidatorTest(String name, boolean expectedResult) %7B%0A        this.name = name;%0A        this.expectedResult = expectedResult;%0A    %7D%0A%0A    @Before%0A    public void setup() throws Exception %7B%0A        validator = ValidationUtils.getValidator();%0A    %7D%0A%0A    @Test%0A    public void checkName() %7B%0A        Set%3CConstraintViolation%3CValidNameContainer%3E%3E result = validator.validate(new ValidNameContainer(name));%0A        assertEquals(expectedResult, result.isEmpty());%0A    %7D%0A%0A    @Parameterized.Parameters%0A    public static Collection%3CObject%5B%5D%3E namesParams() %7B%0A        return Arrays.asList(new Object%5B%5D%5B%5D %7B%0A                %7B %22abc%22, true %7D,%0A                %7B %22123%22, true %7D,%0A                %7B %22abc123%22, true %7D,%0A                %7B %22123abc%22, true %7D,%0A                %7B null, true %7D,%0A                %7B %22 %22, false %7D,%0A                %7B %22%22, false %7D,%0A                %7B %22abc %22, false %7D,%0A                %7B %22 abc%22, false %7D,%0A                %7B %22abc cde%22, false %7D,%0A                %7B %22abc*%22, false %7D%0A        %7D);%0A    %7D%0A%0A    private class ValidNameContainer %7B%0A%0A        @ValidName%0A        private String name;%0A%0A        public ValidNameContainer(String name) %7B%0A            this.name = name;%0A        %7D%0A    %7D%0A%7D%0A

Add test for ValidName annotation