public function testGet()
{
$this->_eventManager->on('Dispatcher.invokeController', ['priority' => 1000], function () {
$this->_subscribeToEvents($this->_controller);
});
$expected = ['1' => '1st post', '2' => '2nd post', '3' => '3rd post'];
$this->get('/blogs/lookup.json');
$this->assertEvents(['beforeLookup', 'afterLookup', 'beforeRender']);
$this->assertNotNull($this->viewVariable('viewVar'));
$this->assertNotNull($this->viewVariable('blogs'));
$this->assertNotNull($this->viewVariable('success'));
$this->assertEquals($expected, $this->viewVariable('blogs')->toArray());
}