Fix junit failures caused by deprecated junit assertEquals methods.