def METHOD_NAME(self, mock_create):
    mock_create.return_value = {}
    body_str = """{"vswitch": {"name": "name1",
                               "rdev": "1234 abcd 123F",
                               "port_type": 1,
                               "controller": "*"}}"""
    self.req.body = body_str
    vswitch.vswitch_create(self.req)
    body = util.extract_json(body_str)
    mock_create.assert_called_once_with(body=body)