The document shows the step-by-step development of a PrimeFactors class using test-driven development. Unit tests are added one by one to drive the implementation of a generate method to return the prime factors of a given integer. The tests initially fail and then the production code is written to pass each new test in turn.