### Question:
PortHandler implements TransactionChainListener { InstanceIdentifier<Port> createWildcartedPortIid() { return portsIid().child(Port.class).build(); } PortHandler(DataBroker dataBroker, NodeId routingNodeId); static Optional<FixedIps> resolveFirstFixedIps(Port port); @Override void onTransactionChainFailed(TransactionChain<?, ?> chain, AsyncTransaction<?, ?> transaction,
            Throwable cause); @Override void onTransactionChainSuccessful(TransactionChain<?, ?> chain);  }### Answer:
@Test public void testCreateWildcartedPortIid() throws TransactionCommitFailedException { InstanceIdentifier<Port> iid = portHandler.createWildcartedPortIid(); Class<?>[] expectedTypes = {Neutron.class, Ports.class, Port.class}; TestUtils.assertPathArgumentTypes(iid.getPathArguments(), expectedTypes); assertEquals(iid.getTargetType(), Port.class); }