Code samples from my book "Developer Testing" found at http://leanpub.com/developer_testing