InformationElementServiceImpl implements InformationElementService { @Override public boolean removeInformationElementMapping(String deviceFamily) { return m_ieCache.removeInformationElement(deviceFamily); } InformationElementServiceImpl(InformationElementCache ieCache); @Override InformationElement getInformationElement(String family, int informationElementId); @Override InformationElement getInformationElement(long enterpriseNumber, String informationElementName); @Override boolean isIECacheAvailable(); @Override void loadInformationElementMapping(String family, File file); @Override boolean removeInformationElementMapping(String deviceFamily); @Override void setIeMappingCacheService(IEMappingCacheService ieMappingCacheService);  }
@Test public void testRemoveInformationElementMapping() { String family = "family"; when(m_cache.removeInformationElement(family)).thenReturn(true); m_informationElementService = new InformationElementServiceImpl(m_cache); assertTrue(m_informationElementService.removeInformationElementMapping(family)); verify(m_cache).removeInformationElement(family); }