### Question:
MatcherContext { public Person lookupReceiver(final int index) { return receivers.get(index); } MatcherContext(final List<Person> receivers, final Set<GiverAssignment> restrictions); OptionalInt allocateNextReceiver(final int previousIndex); Person lookupReceiver(final int index); Set<Person> getRemainingReceivers(); boolean isPossibleMatch(final GiverAssignment pair); static final int NO_RECEIVER_ALLOCATED; }### Answer:
@Test public void testLookupReceiver() { assertAll( () -> assertEquals(PERSON_1, target.lookupReceiver(0)), () -> assertEquals(PERSON_2, target.lookupReceiver(1)), () -> assertEquals(PERSON_3, target.lookupReceiver(2)) ); }