def test_json(self):
        body, mime_type = self._run_handler(
            EXPERIMENT, SESSION_GROUPS, download_data.OutputFormat.JSON
        )
        self.assertEqual("application/json", mime_type)
        expected_result = {
            "header": [
                "initial_temp",
                "final_temp",
                "string_hparam",
                "bool_hparam",
                "optional_string_hparam",
                "current_temp",
                "delta_temp",
                "optional_metric",
            ],
            "rows": [
                [270.0, 150.0, "a string", True, "", 10.0, 15.0, 33.0],
                [280.0, 100.0, "AAAAA", False, "", 51.0, 44.5, None],
                [
                    300.0,
                    1.2e-05,
                    "a string_3",
                    True,
                    "BB",
                    101.0,
                    -15100000.0,
                    None,
                ],
            ],
        }
        self.assertEqual(expected_result, body)