I'm continuing the series about unit testing anti-patterns I started a couple months ago. This article is about leaking domain knowledge to tests. Leaking domain knowledge is another quite common anti-pattern. You can often see it in tests that aim at complex algorithms. Let's take this SUT for example: View the code on Gist.