@Test public void shouldMatchWhenSingleUnderlyingMatcherMatch() throws Exception { when(matcher1.match(mail)).thenReturn(ImmutableList.of(ANY_AT_JAMES)); testee.add(matcher1); assertThat(testee.match(mail)).containsOnly(ANY_AT_JAMES); }
@Override public Collection<MailAddress> match(final Mail mail) throws MessagingException { ImmutableList<Set<MailAddress>> individualMatchedResults = performMatchOnMatchers(mail); return computeIntersection(individualMatchedResults); }
And extends GenericCompositeMatcher { @Override public Collection<MailAddress> match(final Mail mail) throws MessagingException { ImmutableList<Set<MailAddress>> individualMatchedResults = performMatchOnMatchers(mail); return computeIntersection(individualMatchedResults); } }
And extends GenericCompositeMatcher { @Override public Collection<MailAddress> match(final Mail mail) throws MessagingException { ImmutableList<Set<MailAddress>> individualMatchedResults = performMatchOnMatchers(mail); return computeIntersection(individualMatchedResults); }  }
And extends GenericCompositeMatcher { @Override public Collection<MailAddress> match(final Mail mail) throws MessagingException { ImmutableList<Set<MailAddress>> individualMatchedResults = performMatchOnMatchers(mail); return computeIntersection(individualMatchedResults); }  @Override Collection<MailAddress> match(final Mail mail); }
And extends GenericCompositeMatcher { @Override public Collection<MailAddress> match(final Mail mail) throws MessagingException { ImmutableList<Set<MailAddress>> individualMatchedResults = performMatchOnMatchers(mail); return computeIntersection(individualMatchedResults); }  @Override Collection<MailAddress> match(final Mail mail);  }