### Question:
SnsTopicResource { public String getTopicName() { return topicName; } SnsTopicResource(final String topicName, final String topicArn, final AmazonSNS amazonSnsClient); void publish(final String subject, final String message); void subscribe(final SqsQueueResource sqsQueueResource); void setPolicy(final Policy policy); String getTopicName(); String getTopicArn();  }### Answer:
@Test public void shouldReturnTopicName() { final String returnedTopicName = snsTopicResource.getTopicName(); assertEquals(topicName, returnedTopicName); }