### Question:
InstanceIdentifierCodec extends AbstractModuleStringInstanceIdentifierCodec implements EffectiveModelContextListener { public InstanceIdentifierCodec(DOMSchemaService schemaService, BindingNormalizedNodeSerializer bindingNormalizedNodeSerializer) { schemaService.registerSchemaContextListener(this); this.bindingNormalizedNodeSerializer = bindingNormalizedNodeSerializer; } InstanceIdentifierCodec(DOMSchemaService schemaService,
            BindingNormalizedNodeSerializer bindingNormalizedNodeSerializer); @Override void onModelContextUpdated(EffectiveModelContext schemaContext); String serialize(InstanceIdentifier<?> iid); YangInstanceIdentifier getYangInstanceIdentifier(InstanceIdentifier<?> iid); InstanceIdentifier<?> bindingDeserializer(String iidString); InstanceIdentifier<?> bindingDeserializer(YangInstanceIdentifier yangIID); InstanceIdentifier<?> bindingDeserializerOrNull(String iidString);  }### Answer:
@Test public void testInstanceIdentifierCodec() throws Exception { InstanceIdentifierCodec codec = new InstanceIdentifierCodec(schemaService, bindingNormalizedNodeSerializer); verify(schemaService).registerSchemaContextListener(codec); }