def METHOD_NAME(self, api_client, schema_match):
    with patch.object(MockManager, 'shutdown') as mocked_shutdown:
        payload = {'operation': 'shutdown'}
        rsp = api_client.json_post('/server/manage/', data=json.dumps(payload))
        assert rsp.status_code == 200
        data = json.loads(rsp.get_data(as_text=True))
        errors = schema_match(base_message, data)
        assert not errors
        assert mocked_shutdown.called