replaced deprecated junit API use