Added a JUnit test.