Topic { public boolean hasTopic() { return !topic.isEmpty(); } Topic();  Topic(final String topic, final String nick, final long time); void changeTopic(final String topic, final String nick, final long time); void changeTopic(final Topic topic); void resetTopic(); String getNick(); long getTime(); String getTopic(); boolean hasTopic(); @Override String toString();  }
@Test public void hasTopicShouldBeFalseIfTopicIsEmpty() { final Topic topic = new Topic(); assertFalse(topic.hasTopic()); }
@Test public void hasTopicShouldBeTrueIfTopicIsSet() { final Topic topic = new Topic("Something", "Me", 50); assertTrue(topic.hasTopic()); }