JBIDE-14535 - test failures

small change of logic to not use deprecated methods.