Copied from testing-helpers/wicket-matchers