add validation to pom
<version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>javax.validation</groupId>
+ <artifactId>validation-api</artifactId>
+ <version>${validation-api.version}</version>
+ </dependency>
</dependencies>
<build>
<properties>
<maven.surefire.version>2.22.1</maven.surefire.version>
+ <validation-api.version>2.0.1.Final</validation-api.version>
</properties>
</project>
