formatted class; use of hamcrest