Fix failing JUnit test.