public function testApiSetData_PassesProperParameters()
{
$expectedData = $this->getMock('StdClass');
$react = $this->createApiMethodMock('setData', function ($data) use($expectedData) {
$this->assertSame($expectedData, $data);
});
$react->setData($expectedData);
}