### Question:
CaptionComponentWrapper implements ComponentWrapper { @Override public void setEnabled(boolean enabled) { component.setEnabled(enabled); } CaptionComponentWrapper(Component component, WrapperType wrapperType);  CaptionComponentWrapper(String id, Component component, WrapperType wrapperType); @Override void setId(String id); @Override void setLabel(String labelText); @Override void setEnabled(boolean enabled); @Override void setVisible(boolean visible); @Override void setTooltip(String text); @Override Component getComponent(); @Override void setValidationMessages(MessageList messagesForProperty); @Override WrapperType getType(); @Override void registerBinding(Binding binding); @Override String toString();  }### Answer:
@Test public void testSetEnabled() { Component component = mock(Component.class); CaptionComponentWrapper wrapper = new CaptionComponentWrapper("testID", component, WrapperType.FIELD); wrapper.setEnabled(true); verify(component).setEnabled(true); wrapper.setEnabled(false); verify(component).setEnabled(false); }