### Question:
HitPolicyPopoverViewImpl extends AbstractPopoverViewImpl implements HitPolicyPopoverView { @Override public void initHitPolicies(final List<HitPolicy> hitPolicies) { hitPolicies.forEach(hp -> lstHitPolicies.addOption(hp.value())); } HitPolicyPopoverViewImpl(); @Inject  HitPolicyPopoverViewImpl(final Select lstHitPolicies,
                                    final Select lstBuiltinAggregator,
                                    final BuiltinAggregatorUtils builtinAggregatorUtils,
                                    final Div popoverElement,
                                    final Div popoverContentElement,
                                    final Span hitPolicyLabel,
                                    final Span builtinAggregatorLabel,
                                    final JQueryProducer.JQuery<Popover> jQueryPopover,
                                    final TranslationService translationService); @Override void init(final HitPolicyPopoverView.Presenter presenter); @Override void initHitPolicies(final List<HitPolicy> hitPolicies); @Override void initBuiltinAggregators(final List<BuiltinAggregator> aggregators); @Override void initSelectedHitPolicy(final HitPolicy hitPolicy); @Override void initSelectedBuiltinAggregator(final BuiltinAggregator aggregator); @Override void enableHitPolicies(final boolean enabled); @Override void enableBuiltinAggregators(final boolean enabled);  }### Answer:
@Test public void testInitHitPolicies() throws Exception { view.initHitPolicies(Arrays.asList(HitPolicy.values())); Stream.of(HitPolicy.values()).forEach(policy -> verify(lstHitPolicies).addOption(policy.value())); }