public void matches(StringMatchAssertion... predicates) {
   hasSize(predicates.length);
   for (int i = 0; i < predicates.length; i++) {
     String actualLine = _logger.getMessages().get(i);
     predicates[i].evaluate(actualLine);
   }
 }
 private String firstLineThatContains(String s) {
   for (String line : _logger.getMessages()) {
     if (line.contains(s)) {
       return line;
     }
   }
   return null;
 }
 public InMemoryLoggerAssert(InMemoryLogger logger) {
   super(logger.getMessages());
   _logger = logger;
 }