public function validateProcessesParamThrowsExpectionIfArgumentIsAArrayWithInvalidProccesses()
{
$autoScalingGroupClient = $this->getAutoScalingGroupClientMock(['suspendProcesses']);
$autoScalingGroupClient->method('suspendProcesses')->willReturn(new \Aws\Result([]));
$profileManager = $this->getProfileManagerMock(['getClient']);
$profileManager->method('getClient')->willReturn($autoScalingGroupClient);
$data = ['AutoScalingGroupName' => 'MyASGName'];
$autoScalingGroup = new \AwsInspector\Model\AutoScaling\AutoScalingGroup($data, $profileManager);
$reflection = new \ReflectionClass($autoScalingGroup);
$reflection_property = $reflection->getProperty('availableProcesses');
$reflection_property->setAccessible(true);
$reflection_property->setValue($autoScalingGroup, ['test']);
$this->setExpectedException('Exception', "Process 'doesntExist' is invalid'");
$autoScalingGroup->suspendProcesses(['doesntExist']);
}