Map structure and unit test.