/usr/share/java/hamcrest-generator.jar is in libhamcrest-java 1.3-5ubuntu1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/java/hamcrest-generator-1.3.jar
/usr/share/java/hamcrest-generator-1.3.jar