Update MetricsEndpointTest.java