### Question:
TooltipAspectDefinition extends ModelToUiAspectDefinition<String> { @Override public Consumer<String> createComponentValueSetter(ComponentWrapper componentWrapper) { return componentWrapper::setTooltip; } TooltipAspectDefinition(TooltipType type, String value); @Override Aspect<String> createAspect(); @Override Consumer<String> createComponentValueSetter(ComponentWrapper componentWrapper); static final String NAME; }### Answer:
@Test public void testCreateComponentValueSetterComponentWrapper() { TooltipAspectDefinition aspectDefinition = new TooltipAspectDefinition( TooltipType.STATIC, "test"); Consumer<String> setter = aspectDefinition.createComponentValueSetter(componentWrapper); assertThat(componentWrapper.getComponent().getTooltipText(), is(nullValue())); setter.accept("test"); assertThat(componentWrapper.getComponent().getTooltipText(), is("test")); }