InformationElementCache { public boolean removeInformationElement(String deviceFamily) { return Objects.nonNull(m_informationElementStorage.remove(deviceFamily)); } InformationElementCache(); InformationElement getInformationElement(String family, int informationElementId); InformationElement getInformationElement(long enterpriseNumber, String informationElementName); void putInformationElementId(String family, InformationElement ie); void putInformationElementName(long enterpriseNumber, InformationElement ie); boolean removeInformationElement(String deviceFamily); boolean isAvailable(); boolean isAvailable(String family);  }
@Test public void testRemoveInformationElement() { assertFalse(m_informationElementCache.removeInformationElement("family")); putInformationElement("family", 5002); assertTrue(m_informationElementCache.isAvailable()); assertTrue(m_informationElementCache.removeInformationElement("family")); }