https://github.com/jboss-reddeer/reddeer/pull/232/