### Question:
HtmlEntities { public List<String> nameToEntityReferences(String name) { return nameToNumericEntityReferences.get(name); } private  HtmlEntities(); static HtmlEntities instance(); List<String> nameToEntityReferences(String name); String nameToStringEquivalent(String name);  }### Answer:
@Test public void nameToEntityReferencesUnknownName() { assertEquals(ImmutableList.of(), instance.nameToEntityReferences("asdf")); assertEquals(ImmutableList.of(), instance.nameToEntityReferences(null)); }
@Test public void nameToEntityReferences() { assertEquals(ImmutableList.of("#160"), instance.nameToEntityReferences("nbsp")); assertEquals(ImmutableList.of("#8807", "#824"), instance.nameToEntityReferences("ngE")); assertEquals(ImmutableList.of("#8817"), instance.nameToEntityReferences("nge")); }