codes from learning the book "JUnit in action"