def METHOD_NAME(self):
    smtpmock.setdata(response={"recp@example.com": (200, "OK")})
    with self.app.test_request_context('/smtpserver/send_test_email',
                                       method='POST',
                                       data={"identifier": "someServer",
                                             "username": "cornelius",
                                             "password": "secret",
                                             "port": "123",
                                             "server": "1.2.3.4",
                                             "sender": "privacyidea@local",
                                             "recipient":
                                                 "recp@example.com",
                                             "description": "myServer"},
                                       headers={'Authorization': self.at}):
        res = self.app.full_dispatch_request()
        self.assertTrue(res.status_code == 200, res)
        data = res.json
        self.assertEqual(data.get("result").get("value"), True)