How to run
mvn install
mvn compile exec:java -Dexec.mainClass="com.ramprasadg.generic.ArrayRotation"
How to run unit tests
#runs specific test files
mvn test -Dtest=TestMyComparator test
#runs all test files
mvn test
for more refer https://mkyong.com/maven/how-to-run-unit-test-with-maven/