Provides example of usage of template and factory method in unit tests to reduce duplication