HORNETQ-1217 Fix deprecated calls that on JUnit4 will just fail to run.