### Question:
MappingRule implements Serializable { public Pattern getPattern() { return pattern; } MappingRule(String id, String metricId, String pattern, String method); String getId(); Pattern getPattern(); String getMetricId(); HttpMethod getMethod(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static MappingRule of(JsonNode jsonNode); boolean matches(String path, HttpMethod method);  }### Answer:
@Test public void whenNoWildcardAndNoDollar_thenNoWildcardAndNoFixEnd() { MappingRule mappingRule = new MappingRule(ID, METRIC_ID, "/url/pattern/", METHOD); String transferedPattern = mappingRule.getPattern().pattern(); assertThat(transferedPattern, is("/url/pattern/.*")); }