### Question:
NeutronGbpIidFactory { @Deprecated public static InstanceIdentifier<EndpointByPort> endpointByPortIid(UniqueId portId) { return InstanceIdentifier .builder(Mappings.class) .child(GbpByNeutronMappings.class) .child(EndpointsByPorts.class) .child(EndpointByPort.class, new EndpointByPortKey(portId)) .build(); }  static InstanceIdentifier<BaseEndpointByPort> baseEndpointByPortIid(UniqueId portId); @Deprecated static InstanceIdentifier<EndpointByPort> endpointByPortIid(UniqueId portId); static InstanceIdentifier<PortByBaseEndpoint> portByBaseEndpointIid(PortByBaseEndpointKey baseEpkey); @Deprecated static InstanceIdentifier<PortByEndpoint> portByEndpointIid(L2BridgeDomainId l2BdId, MacAddress mac); static InstanceIdentifier<ExternalGatewayAsEndpoint> externalGatewayAsEndpoint(ContextId contextId,
            IpPrefix ipPrefix, Class<? extends ContextType> contextType); @Deprecated static InstanceIdentifier<ExternalGatewayAsL3Endpoint> externalGatewayAsL3Endpoint(L3ContextId l3Context,
            IpAddress ipAddress); static InstanceIdentifier<ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, ContextId domainId); @Deprecated @SuppressWarnings("checkstyle:LineLength") // Longer lines in this method are caused by long package names, // this will be removed when deprecated classes will be cleared. static InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.neutron.gbp.mapper.rev150513.mappings.neutron.by.gbp.mappings.provider.physical.networks.as.l2.flood.domains.ProviderPhysicalNetworkAsL2FloodDomain> providerPhysicalNetworkAsL2FloodDomainIid(
            TenantId tenantId, L2FloodDomainId l2FdId);  }### Answer:
@Test public void endpointByPortIidTest() { UniqueId portId = mock(UniqueId.class); InstanceIdentifier<EndpointByPort> id = NeutronGbpIidFactory.endpointByPortIid(portId); assertNotNull(id); Class<?>[] expectedTypes = {Mappings.class, GbpByNeutronMappings.class, EndpointsByPorts.class, EndpointByPort.class}; assertPathArgumentTypes(id.getPathArguments(), expectedTypes); assertEquals(EndpointByPort.class, id.getTargetType()); assertFalse(id.isWildcarded()); assertEquals(portId, id.firstKeyOf(EndpointByPort.class).getPortId()); }