### Question:
GuideProbeTargets implements Serializable, TargetContainer, OptionsList<SPTarget> { public GuideProbe getGuider() { return guider; } private  GuideProbeTargets(final GuideProbe guider, final OptionsList<SPTarget> targetOptions); static ImList<GuideProbeTargets> sortByGuider(final ImList<GuideProbeTargets> lst); static GuideProbeTargets create(final GuideProbe guider, final SPTarget... targets); static GuideProbeTargets create(final GuideProbe guider, final ImList<SPTarget> targetList); static GuideProbeTargets create(final GuideProbe guider, final OptionsList<SPTarget> targets); GuideProbe getGuider(); boolean containsTargets(); @Override boolean containsTarget(final SPTarget target); @Override ImList<SPTarget> getTargets(); @Override GuideProbeTargets cloneTargets(); @Override GuideProbeTargets removeTarget(final SPTarget target); @Override Iterator<SPTarget> iterator(); Option<SPTarget> getPrimary(); GuideProbeTargets clearPrimarySelection(); @Override GuideProbeTargets selectPrimary(final Option<SPTarget> primary); @Override GuideProbeTargets selectPrimary(final SPTarget primary); @Override GuideProbeTargets setPrimary(final SPTarget primary); @Override Option<Integer> getPrimaryIndex(); @Override GuideProbeTargets setPrimaryIndex(final Option<Integer> primary); @Override GuideProbeTargets setPrimaryIndex(final int primary); @Override ImList<SPTarget> getOptions(); @Override GuideProbeTargets setOptions(final ImList<SPTarget> newList); @Override GuideProbeTargets update(final Option<Integer> primaryIndex, final ImList<SPTarget> list); @Override GuideProbeTargets update(final Op<SPTarget> op); @SuppressWarnings("SimplifiableIfStatement") @Override boolean equals(final Object o); @Override int hashCode(); ParamSet getParamSet(final PioFactory factory); static GuideProbeTargets fromParamSet(final ParamSet parent); String mkString(final String prefix, final String sep, final String suffix); String toString(); static final ImList<GuideProbeTargets> EMPTY_LIST; static final String PARAM_SET_NAME; }### Answer:
@Test public void testMatchGuider() { final PredicateOp<GuideProbeTargets> op = gpt -> gpt.getGuider() == pwfs1; assertTrue(op.apply(fix.gpt_pwfs1)); assertFalse(op.apply(fix.gpt_pwfs2)); assertFalse(op.apply(fix.gpt_gmos)); }
@Test public void testMatchType() { final PredicateOp<GuideProbeTargets> op = gpt -> gpt.getGuider().getType() == GuideProbe.Type.OIWFS; assertFalse(op.apply(fix.gpt_pwfs1)); assertFalse(op.apply(fix.gpt_pwfs2)); assertTrue(op.apply(fix.gpt_gmos)); }