Fix build error in JUnit test.