@Test public void toDependency() { DependencyProperties c = new DependencyProperties(); ComponentProperties cmp = new ComponentProperties(); c.setComponent(cmp); cmp.setName("magneto"); cmp.setType("villain"); Assert.assertEquals(Dependency.on(Component.of("magneto", "villain")), c.toDependency()); }
public Dependency toDependency() { return Dependency.on(component.toComponent()); }
DependencyProperties { public Dependency toDependency() { return Dependency.on(component.toComponent()); } }
DependencyProperties { public Dependency toDependency() { return Dependency.on(component.toComponent()); }  }
DependencyProperties { public Dependency toDependency() { return Dependency.on(component.toComponent()); }  Dependency toDependency(); }
DependencyProperties { public Dependency toDependency() { return Dependency.on(component.toComponent()); }  Dependency toDependency();  }