Some Java application packages use %jpackage_script where the packager has to specify the dependency classpath manually.
We can add a test that checks the content of the JAR file of the package, finds all referenced class names and checks that all class names are present on the classpath.
Classpathless compiler has a utility for this: https://github.com/mkoncek/classpathless-compiler/blob/master/util/src/main/java/io/github/mkoncek/classpathless/util/BytecodeExtractor.java#L125