static String getChannelName(final String topicName) {
        final StringBuilder channelName = new StringBuilder();
        if (topicName.charAt(0) != '/') {
            channelName.append('/');
        }

        if (topicName.indexOf('/', 1) > 0) {
            channelName.append(topicName);
        } else {
            channelName.append("topic/");
            channelName.append(topicName);
        }

        return channelName.toString();
    }
@Test
    public void shouldDetermineChannelNames() {
        assertThat(SubscriptionHelper.getChannelName("topic1")).isEqualTo("/topic/topic1");
        assertThat(SubscriptionHelper.getChannelName("event/Test")).isEqualTo("/event/Test");
        assertThat(SubscriptionHelper.getChannelName("event/Test__e")).isEqualTo("/event/Test__e");
    }