### Question:
ParametersPopoverViewImpl extends AbstractPopoverViewImpl implements ParametersPopoverView { @Override public void setParameters(final List<InformationItem> parameters) { parameterViewInstances.clear(); parameterViewInstances.addAll(parameters .stream() .map(this::makeParameterView) .collect(Collectors.toList())); DOMUtil.removeAllChildren(parametersContainer); parameterViewInstances.forEach(parameterView -> parametersContainer.appendChild(parameterView.getElement())); } ParametersPopoverViewImpl(); @Inject  ParametersPopoverViewImpl(final Div parametersContainer,
                                     final Div addParameter,
                                     final ManagedInstance<ParameterView> parameterViews,
                                     final Div popoverElement,
                                     final Div popoverContentElement,
                                     final JQueryProducer.JQuery<Popover> jQueryPopover); @Override void init(final Presenter presenter); @Override void setParameters(final List<InformationItem> parameters); @Override void updateParameterName(final int index,
                                    final String name); @Override void focusParameter(final int index); @EventHandler("addParameter") @SinkNative(Event.ONCLICK) @SuppressWarnings("unused") void onClickAddParameter(final Event event);  }### Answer:
@Test public void testSetParameters() { final InformationItem parameter1 = new InformationItem(); final InformationItem parameter2 = new InformationItem(); parameter1.getName().setValue(PARAMETER1_NAME); parameter2.getName().setValue(PARAMETER2_NAME); final List<InformationItem> parameters = Arrays.asList(parameter1, parameter2); view.setParameters(parameters); verify(parameterView1).setName(eq(PARAMETER1_NAME)); verifyRemoveClickHandler(parameter1, parameterView1); verifyParameterNameChangeHandler(parameter1, parameterView1); verifyParameterTypeRefChangeHandler(parameter1, parameterView1); verify(parameterView2).setName(eq(PARAMETER2_NAME)); verifyRemoveClickHandler(parameter2, parameterView2); verifyParameterNameChangeHandler(parameter2, parameterView2); verifyParameterTypeRefChangeHandler(parameter2, parameterView2); verify(parametersContainer, times(2)).appendChild(element); }