Replaced deprecated junit methods