Topic { public byte[] getBytes() { return abrigedTopic; } Topic(byte[] data);  Topic(String data); byte[] getBytes(); static Topic[] createTopics(String ... topicsString); byte[] getAbrigedTopic(); byte[] getFullTopic(); String getOriginalTopic(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void test1(){ Topic topic = new Topic("cow"); assertEquals("91887637", Hex.toHexString(topic.getBytes())); }
@Test public void test2(){ Topic topic = new Topic("cowcowcow"); assertEquals("3a6de614", Hex.toHexString(topic.getBytes())); }