public String getRealTopic(String topic, String groupName) {
        if (RETRY_TOPIC.equals(topicType)) {
            return KeyBuilder.buildPopRetryTopicV1(topic, groupName);
        }
        if (RETRY_TOPIC_V2.equals(topicType)) {
            return KeyBuilder.buildPopRetryTopicV2(topic, groupName);
        }
        return topic;
    }
@Test
    public void testGetRealTopic() {
        // Arrange
        String topic = "TestTopic";
        String groupName = "TestGroup";
        ReceiptHandle receiptHandle = ReceiptHandle.builder()
            .topicType(ReceiptHandle.RETRY_TOPIC)
            .build();

        String realTopic = receiptHandle.getRealTopic(topic, groupName);

        assertEquals(KeyBuilder.buildPopRetryTopicV1(topic, groupName), realTopic);
    }