Tests: Fix FileBasedMappingsTests by using the mappings API instead of field mappings.