avoid compile warnings due to deprecated code in junit