### Question:
VertxMetricsTags { public static Tag uri(String pathInfo, int code) { if (code > 0) { if (code / 100 == 3) { return URI_REDIRECTION; } else if (code == 404) { return URI_NOT_FOUND; } } if (pathInfo == null) { return URI_UNKNOWN; } if (pathInfo.isEmpty() || "/".equals(pathInfo)) { return URI_ROOT; } return Tag.of("uri", pathInfo); }  static Tag method(HttpMethod method); static Tag status(int statusCode); static Tag outcome(HttpServerResponse response); static Tag outcome(HttpClientResponse response); static Tag uri(String pathInfo, int code);  }### Answer:
@Test public void testUriRedirect() { Assertions.assertEquals(VertxMetricsTags.URI_REDIRECTION, VertxMetricsTags.uri("/moved", 301)); Assertions.assertEquals(VertxMetricsTags.URI_REDIRECTION, VertxMetricsTags.uri("/moved", 302)); Assertions.assertEquals(VertxMetricsTags.URI_REDIRECTION, VertxMetricsTags.uri("/moved", 304)); }
@Test public void testUriDefaults() { Assertions.assertEquals(VertxMetricsTags.URI_ROOT, VertxMetricsTags.uri("/", 200)); Assertions.assertEquals(Tag.of("uri", "/known/ok"), VertxMetricsTags.uri("/known/ok", 200)); Assertions.assertEquals(VertxMetricsTags.URI_NOT_FOUND, VertxMetricsTags.uri("/invalid", 404)); Assertions.assertEquals(Tag.of("uri", "/known/bad/request"), VertxMetricsTags.uri("/known/bad/request", 400)); Assertions.assertEquals(Tag.of("uri", "/known/server/error"), VertxMetricsTags.uri("/known/server/error", 500)); }