JComboBoxView implements ItemListener { public void bind() { myCombo.addItemListener(this); myObject.addDependency(myAspectObserver).onChange(myAspect, this::changed); changed(); } JComboBoxView(JComboBox<T> combo, AspectModel<A> object, A aspect, Supplier<List<T>> list, Supplier<T> get, Consumer<T> set); void bind(); @Override void itemStateChanged(ItemEvent event);  }
@Test public void bind() { check(); }