JUnit testing without dull routine