Unit test for the Factory Method creational design pattern.