public function testCommandThrowsExceptionIfInvalidEntityType()
{
$application = $this->getApplication();
$application->add(new RemoveCommand());
$application->setAutoExit(false);
$command = $this->getApplication()->find('eav:attribute:remove');
$this->setExpectedException('\\InvalidArgumentException', 'Invalid entity_type specified: not_a_valid_type');
$commandTester = new CommandTester($command);
$commandTester->execute(array('command' => $command->getName(), 'entityType' => 'not_a_valid_type', 'attributeCode' => array('someAttribute')));
}