Revert "Fixing test JavaParserResourcesTest after the maven-optional cleanup"

This reverts commit 7f76c845525fce389cd20597b2df21516d41792f.