def METHOD_NAME(self):
    self.test_result.start_test(self.test1)
    self.test_result.end_test(self.test1.get_state())
    self.test_result.end_tests()
    json_result = jsonresult.JSONResult()
    json_result.render(self.test_result, self.job)
    with open(
        self.job.config.get("job.run.result.json.output"), encoding="utf-8"
    ) as fp:
        j = fp.read()
    obj = json.loads(j)
    self.assertTrue(obj)
    self.assertEqual(len(obj["tests"]), 1)