### Question:
MathTag { @Deprecated public Multiset<String> getIdentifier(boolean useTeX, boolean useBlacklist) { return extractIdentifiersFromMathML(getContent(), useTeX, useBlacklist); } 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 testGetIdentifier() throws Exception { MathTag tagX = new MathTag(1, "<math xmlns=\"http: assertEquals(ImmutableSet.of("x"), tagX.getIdentifier(true, true).elementSet()); assertEquals(ImmutableSet.of("x"), tagX.getIdentifier(false, true).elementSet()); MathTag schrödinger = new MathTag(1, getTestResource("com/formulasearchengine/mathosphere/mlp/schrödinger_eq.xml"), WikiTextUtils.MathMarkUpType.MATHML); ImmutableMultiset<String> lIds = ImmutableMultiset.of("i", "\\hbar", "\\hbar", "t", "t", "t", "t", "\\Psi", "\\Psi", "\\Psi", "\\mathbb{r}", "\\mathbb{r}", "\\mathbb{r}", "\\mathbb{r}", "V", "m"); assertEquals(lIds, schrödinger.getIdentifier(true, false)); }