CAMEL-7840: Upgrade to metrics 3.1. And also use spring 4.x test as spring 4.x is default now.