Fix unused imports and deprecated use of `junit.framework.Assert`.