This warning is fine. A newer version of hamcrest has nicer contains(allOf(... with optional parameters but it won't be available until TRUNK-3944 is resolved...