### Question:
IdentityLinksRewriter implements LinksRewriter { @Override public Map<String, HrefType> rewrite(Map<String, HrefType> links) { return links; }  @Override Map<String, HrefType> rewrite(Map<String, HrefType> links);  }### Answer:
@Test void rewrite() { Map<String, HrefType> links = new HashMap<>(); HrefType scaStatus = new HrefType(); scaStatus.setHref("http: links.put("scaStatus", scaStatus); HrefType self = new HrefType(); self.setHref("http: links.put("self", self); Map<String, HrefType> rewrittenLinks = linksRewriter.rewrite(links); assertThat(rewrittenLinks).isEqualTo(links); }
@Test void rewrite_emptyLinks() { Map<String, HrefType> links = new HashMap<>(); Map<String, HrefType> rewrittenLinks = linksRewriter.rewrite(links); assertThat(rewrittenLinks).isEqualTo(links); }
@Test void rewrite_nullLinks() { assertThat(linksRewriter.rewrite(null)).isNull(); }