[test] Test Java version dependency specified in plugin management