//TODO: move into some Assert class
protected void assertEventMatches(final SWTBotText listeners, String expected) {
expected = expected.replaceAll("time=-?\\d+", "time=SOME_TIME_AGO").replaceAll("x=\\d+", "x=X_CO_ORDINATE").replaceAll("y=\\d+", "y=Y_CO_ORDINATE");
final Matcher<String> matcher = containsString(expected);
bot.waitUntil(new DefaultCondition() {
private String text;
public boolean test() throws Exception {
text = listeners.getText();