### Question:
NeutronGbpIidFactory { public static InstanceIdentifier<PortByBaseEndpoint> portByBaseEndpointIid(PortByBaseEndpointKey baseEpkey) { return InstanceIdentifier.builder(Mappings.class) .child(NeutronByGbpMappings.class) .child(PortsByBaseEndpoints.class) .child(PortByBaseEndpoint.class, baseEpkey) .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 portByBaseEndpointIidTest() { String address = "00:00:00:00:00:00:01"; ContextId ctxId = new ContextId("00000000-1111-2222-3333-44444555566667777"); PortByBaseEndpointKey key = new PortByBaseEndpointKey(address, MacAddressType.class, ctxId, MappingUtils.L2_BRDIGE_DOMAIN); InstanceIdentifier<PortByBaseEndpoint> id = NeutronGbpIidFactory.portByBaseEndpointIid(key); assertNotNull(id); Class<?>[] expectedTypes = {Mappings.class, NeutronByGbpMappings.class, PortsByBaseEndpoints.class, PortByBaseEndpoint.class}; assertPathArgumentTypes(id.getPathArguments(), expectedTypes); assertEquals(PortByBaseEndpoint.class, id.getTargetType()); assertFalse(id.isWildcarded()); assertEquals(ctxId, id.firstKeyOf(PortByBaseEndpoint.class).getContextId()); assertEquals(MappingUtils.L2_BRDIGE_DOMAIN, id.firstKeyOf(PortByBaseEndpoint.class) .getContextType()); assertEquals(address, id.firstKeyOf(PortByBaseEndpoint.class).getAddress()); assertEquals(MacAddressType.class, id.firstKeyOf(PortByBaseEndpoint.class) .getAddressType()); }