Adding a test and method to cover the setMapping method