The testcase testVulnerable()
will test that the environment is vulnerable.
$ mvn clean package
$ java -Dlog4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector -jar target/log4j2-1.0.jar
Article link : https://www.mkyong.com/logging/apache-log4j-2-tutorials/