No-op cleanup: proper Hamcrest usage in a test

No-op cleanup. Replaced direct usages of Hamcrest implementation classes (those are located differently in different versions of Hamcrest) with using Matchers' factory methods.

Tested:
./go //java/server/test/org/openqa/selenium/remote/server:test:run onlyrun=CapabilitiesComparatorTest