Topic { public byte[] getBytes() { return topic; } Topic(byte[] data);  Topic(String data); byte[] getBytes(); static Topic[] createTopics(String[] topicsString); @Override boolean equals(Object obj);  }
@Test public void test1(){ Topic topic = new Topic("cow"); assertEquals("c85ef7d7", Hex.toHexString(topic.getBytes())); }
@Test public void test2(){ Topic topic = new Topic("cowcowcow"); assertEquals("25068349", Hex.toHexString(topic.getBytes())); }