Otherwise the diagnostic was not reported on an unused import of a deprecated class in diagnostic tests, see the test case