def METHOD_NAME(self, path_exists_patch, click_patch, yaml_parse_patch):
    template_path = "path_to_template"
    path_exists_patch.return_value = True
    yaml_parse_patch.return_value = {"a": "b"}
    actual_template = _read_sam_file(template_path)
    self.assertEqual(actual_template, {"a": "b"})