JBMAR-160: fixes for JDK 8

https://issues.jboss.org/browse/JBMAR-160
Are you somehow running the test with a serial writer and river reader?