fix: Fix compiler warnings for deprecated JUnit methods.