Chengang's JUnit test code