Testing duck code exercise from Head First Design Patterns book.