@@ -0,0 +1,1768 @@
+/*%0A * Licensed to the Apache Software Foundation (ASF) under one%0A * or more contributor license agreements.  See the NOTICE file%0A * distributed with this work for additional information%0A * regarding copyright ownership.  The ASF licenses this file%0A * to you under the Apache License, Version 2.0 (the%0A * %22License%22); you may not use this file except in compliance%0A * with the License.  You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.apache.flink.runtime.rest.messages.job.metrics;%0A%0Aimport org.apache.flink.runtime.rest.messages.JobIDPathParameter;%0Aimport org.apache.flink.runtime.rest.messages.JobVertexIdPathParameter;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.Matchers.equalTo;%0Aimport static org.hamcrest.Matchers.instanceOf;%0Aimport static org.junit.Assert.assertThat;%0A%0A/**%0A * Tests for %7B@link JobVertexMetricsHeaders%7D.%0A */%0Apublic class JobVertexMetricsHeadersTest %7B%0A%0A%09private final JobVertexMetricsHeaders jobVertexMetricsHeaders = JobVertexMetricsHeaders%0A%09%09.getInstance();%0A%0A%09@Test%0A%09public void testUrl() %7B%0A%09%09assertThat(jobVertexMetricsHeaders.getTargetRestEndpointURL(),%0A%09%09%09equalTo(%22/jobs/:%22 + JobIDPathParameter.KEY + %22/vertices/:%22 +%0A%09%09%09%09JobVertexIdPathParameter.KEY + %22/metrics%22));%0A%09%7D%0A%0A%09@Test%0A%09public void testMessageParameters() %7B%0A%09%09assertThat(jobVertexMetricsHeaders.getUnresolvedMessageParameters(),%0A%09%09%09instanceOf(JobVertexMetricsMessageParameters.class));%0A%09%7D%0A%0A%7D%0A

Add unit tests JobVertexMetricsHeadersTest