@Test public void toComponent() { ComponentProperties c = new ComponentProperties(); c.setName("wolverine"); c.setType("superhero"); Component expected = Component.of("wolverine", "superhero"); Component actual = c.toComponent(); Assert.assertEquals(expected, actual); }
public Component toComponent() { return Component.of(name, type); }
ComponentProperties { public Component toComponent() { return Component.of(name, type); } }
ComponentProperties { public Component toComponent() { return Component.of(name, type); }  }
ComponentProperties { public Component toComponent() { return Component.of(name, type); }  Component toComponent(); }
ComponentProperties { public Component toComponent() { return Component.of(name, type); }  Component toComponent();  }