@Test public void toConsumerModel() { ConsumerProperties c = new ConsumerProperties(); ComponentProperties cmp = new ComponentProperties(); c.setComponent(cmp); cmp.setName("gambit"); cmp.setType("superhero"); Assert.assertEquals(Consumer.by(Component.of("gambit", "superhero")), c.toConsumer()); }
public Consumer toConsumer() { return Consumer.by(component.toComponent()); }
ConsumerProperties { public Consumer toConsumer() { return Consumer.by(component.toComponent()); } }
ConsumerProperties { public Consumer toConsumer() { return Consumer.by(component.toComponent()); }  }
ConsumerProperties { public Consumer toConsumer() { return Consumer.by(component.toComponent()); }  Consumer toConsumer(); }
ConsumerProperties { public Consumer toConsumer() { return Consumer.by(component.toComponent()); }  Consumer toConsumer();  }