Add missing Override annotations in the tests of jgrapht-core.

This pull request adds Override annotations for the tests in jgrapht-core.