Learning hamcrest matchers