### Question:
MathTag { @JsonGetter("inputhash") public String getContentHash() { return HASHER.hashString(content, StandardCharsets.UTF_8).toString(); } MathTag(int position, String content, MathMarkUpType markUp); @Override boolean equals(Object obj); @JsonGetter("input") String getContent(); @JsonGetter("inputhash") String getContentHash(); @Deprecated Multiset<String> getIdentifier(boolean useTeX, boolean useBlacklist); Multiset<String> getIdentifiers(BaseConfig config); @JsonIgnore String getKey(); @JsonGetter("type") MathMarkUpType getMarkUpType(); @JsonIgnore int getPosition(); @JsonIgnore String getTagContent(); @Override int hashCode(); @JsonIgnore String placeholder(); String toJson(); @Override String toString(); final static Pattern FORMULA_PATTERN; }### Answer:
@Test public void testGetContentHash() throws Exception { MathTag t = new MathTag(1, "<math><mrow><mo>x</mo><mrow></math>", WikiTextUtils.MathMarkUpType.MATHML); assertEquals("2cf05995ef521b456aa419201d160406", t.getContentHash()); }