public function testCreatesInstance()
{
$GLOBALS['TYPO3_DB'] = $this->getMock('TYPO3\\CMS\\Core\\Database\\DatabaseConnection', array('prepare_SELECTquery'), array(), '', FALSE);
$preparedStatementMock = $this->getMock('TYPO3\\CMS\\Core\\Database\\PreparedStatement', array('execute', 'fetch', 'free'), array(), '', FALSE);
$preparedStatementMock->expects($this->any())->method('execute')->willReturn(FALSE);
$preparedStatementMock->expects($this->any())->method('free');
$preparedStatementMock->expects($this->any())->method('fetch')->willReturn(FALSE);
$GLOBALS['TYPO3_DB']->expects($this->any())->method('prepare_SELECTquery')->willReturn($preparedStatementMock);
$instance = GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get('FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber');
$this->assertInstanceOf('FluidTYPO3\\Fluidcontent\\Hooks\\WizardItemsHookSubscriber', $instance);
}