underTest.setHostAddress("https://sample.host.com");
underTest.setUseSslForSns(true);
given(awsStackUtil.createSnsClient(Regions.DEFAULT_REGION, credential)).willReturn(snsClient);
given(snsClient.createTopic(anyString())).willReturn(createTopicResult);
given(snsTopicRepository.save(any(SnsTopic.class))).willReturn(snsTopic);
given(snsClient.subscribe(anyString(), anyString(), anyString())).willReturn(new SubscribeResult());
// WHEN
underTest.createTopicAndSubscribe(credential, Regions.DEFAULT_REGION);
// THEN
verify(snsClient, times(1)).subscribe(AwsConnectorTestUtil.DEFAULT_TOPIC_ARN, "https", "https://sample.host.com/sns");
}