SimpleIrdEntryListener implements AutoCloseable, DataTreeChangeListener<IrdConfigurationEntry> { protected boolean isAcceptableContext(Uuid context) { if (entryContext.equals(context) || this.context.equals(context)) { return true; } return false; } SimpleIrdEntryListener(InstanceIdentifier<Resource> instance, Uuid entryContext); void register(DataBroker dataBroker, InstanceIdentifier<IrdConfigurationEntry> iid); @Override synchronized void onDataTreeChanged(Collection<DataTreeModification<IrdConfigurationEntry>> changes); @Override synchronized void close();  }
@Test public void isAcceptableContext() throws Exception { boolean result = simpleIrdEntryListener.isAcceptableContext(ecUuid); assertEquals(result, true); }