@Override
 public boolean test() throws Exception {
   consoleText = SWTBotFactory.getConsole().getConsoleText();
   if (consoleText == null) {
     return false;
   }
   return consoleText.contains(expectedText);
 }
 @Override
 public boolean matchesSafely(String item) {
   try {
     SWTBotFactory.getBot().waitUntil(new ConsoleContainsTextCondition(item), timeout);
     if (consoleText == null) {
       throw new IllegalStateException("No console output present");
     }
     return true;
   } catch (TimeoutException e) {
     return false;
   }
 }
 private SWTBot getBot() {
   return SWTBotFactory.getBot();
 }