JUnit example corrected