InteractionNode extends ContainerNode { public boolean multipleConsumers() { Set<Property> props=getProperties(Producer.PROPERTY_PUBLISH); return !props.isEmpty() && props.iterator().next().getValue().equalsIgnoreCase(Boolean.TRUE.toString()); } InteractionNode(NodeType type);  InteractionNode(NodeType type, String uri); boolean interactionNode(); Message getIn(); void setIn(Message in); Message getOut(); void setOut(Message out); boolean multipleConsumers(); @Override int hashCode(); @Override boolean equals(Object obj); static final String PROPERTY_PUBLISH; }
@Test public void testMultipleConsumersTrue() { Consumer node = new Consumer(); node.getProperties().add(new Property(Consumer.PROPERTY_PUBLISH, "true")); assertTrue(node.multipleConsumers()); }
@Test public void testMultipleConsumersFalse() { Consumer node = new Consumer(); assertFalse(node.multipleConsumers()); }