TopicDOMNotification implements DOMNotification { @Override public String toString() { return "TopicDOMNotification [body=" + body + "]"; } TopicDOMNotification(final ContainerNode body); @Override Absolute getType(); @Override ContainerNode getBody(); @Override String toString();  }
@Test public void getToStringTest() { String bodyString = "TopicDOMNotification [body=" + CONTAINER_NODE_BODY_MOCK_TO_STRING + "]"; assertEquals("String has not been created correctly.", bodyString, topicDOMNotification.toString()); }