### Question:
StaticModelToUiAspectDefinition extends ModelToUiAspectDefinition<VALUE_TYPE> { @Override public Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper) { super.createUiUpdater(propertyDispatcher, componentWrapper).apply(); return Handler.NOP_HANDLER; }  @Override Handler createUiUpdater(PropertyDispatcher propertyDispatcher, ComponentWrapper componentWrapper);  }### Answer:
@SuppressWarnings("unchecked") @Test public void testCreateUiUpdater() { when(propertyDispatcher.pull(any(Aspect.class))).thenReturn(true); assertThat(componentWrapper.getComponent().isEnabled(), is(false)); Handler handler = aspectDefinition.createUiUpdater(propertyDispatcher, componentWrapper); verify(propertyDispatcher, times(1)).pull(any(Aspect.class)); assertThat(componentWrapper.getComponent().isEnabled(), is(true)); handler.apply(); verify(propertyDispatcher, times(1)).pull(any(Aspect.class)); }
@Test public void testCreateUiUpdater_WrapsExceptionInPull() { when(propertyDispatcher.pull(Mockito.any())).thenThrow(RuntimeException.class); Assertions.assertThrows(LinkkiBindingException.class, () -> { aspectDefinition.createUiUpdater(propertyDispatcher, componentWrapper); }); }