public function findLaunchConfigurationsGroupedByImageIdReturnsExpectedArray()
{
$autoScalingClient = $this->getAutoScalingGroupClientMock(['describeLaunchConfigurations']);
$autoScalingClient->method('describeLaunchConfigurations')->willReturn(new \Aws\Result(['LaunchConfigurations' => [['LaunchConfigurationName' => 'TestLaunchConfiguration', 'ImageId' => 'x1234'], ['LaunchConfigurationName' => 'TestLaunchConfiguration2', 'ImageId' => 'y8765']]]));
$profileManager = $this->getProfileManagerMock(['getClient']);
$profileManager->method('getClient')->willReturn($autoScalingClient);
$autoScalingRepository = new \AwsInspector\Model\AutoScaling\Repository('', $profileManager);
$result = $autoScalingRepository->findLaunchConfigurationsGroupedByImageId();
$this->assertArrayHasKey('x1234', $result);
$this->assertArrayHasKey('y8765', $result);
$this->assertSame(2, count($result));
}