Adding JUnit test.