when i use command `mvn test -Xlint:unchecked` . some error appear
Looks like your question is similar with Trouble with -Xlint:all and maven or even How to compile using -Xlint:unchecked in a Maven project?
Just add
<compilerArguments>
<Xlint:unchecked />
</compilerArguments>
or
<compilerArguments>-Xlint:unchecked</compilerArguments>
to your maven-compiler-plugin configuration