Fix hamcrest matcher complaining about types. Not sure why this worked on Windows