With the script introduced by bug 23204, we have the mappings.yaml that is generated using the data in DB. When the yaml file is modified, we must ensure that the script will generate exactly the same contain. A test needs to be written.