Initialized sample and mocked up unit testing.