Moved example code to unit test.