@Test
public void testConfirmSubscriptionWhenTopicIsNotConfirmedShouldNotifyAllRequestedStacks() {
// GIVEN
given(awsStackUtil.createSnsClient(Regions.DEFAULT_REGION, credential)).willReturn(snsClient);
SnsRequest snsRequest = createSnsRequest();
given(snsTopicRepository.findByTopicArn(AwsConnectorTestUtil.DEFAULT_TOPIC_ARN)).willReturn(Arrays.asList(snsTopic, snsTopic));
given(snsClient.confirmSubscription(anyString(), anyString())).willReturn(confirmSubscriptionResult);
given(snsTopicRepository.save(any(SnsTopic.class))).willReturn(snsTopic);
given(stackRepository.findRequestedStacksWithCredential(AwsConnectorTestUtil.DEFAULT_ID)).willReturn(Arrays.asList(stack, stack));
// WHEN