code snippets from "Bad Tests, Good Tests" book (see http://practicalunittesting.com)