@Test
public void topicEquality() {

    Topic topic1 = Topic.parse("foo/bar");
    Topic topic2 = Topic.parse("foo/{bar}");
    assertThat(topic1, equalTo(topic1));
    assertThat(topic1, not(equalTo(topic2)));
    assertThat(topic1, not(equalTo(null)));
}