MultiProtocolReachableNLRI extends PathAttribute { public AddressFamilyKey addressFamilyKey() { return new AddressFamilyKey(getAddressFamily(), getSubsequentAddressFamily()); } MultiProtocolReachableNLRI();  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily);  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily, byte[] nextHopAddress);  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily, BinaryNextHop nextHop);  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily, byte[] nextHopAddress, 
			NetworkLayerReachabilityInformation[] nlris);  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily, BinaryNextHop nextHop, 
			NetworkLayerReachabilityInformation[] nlris);  MultiProtocolReachableNLRI(AddressFamily addressFamily, SubsequentAddressFamily subsequentAddressFamily, BinaryNextHop nextHop, 
			Collection<NetworkLayerReachabilityInformation> nlris); AddressFamily getAddressFamily(); void setAddressFamily(AddressFamily addressFamily); SubsequentAddressFamily getSubsequentAddressFamily(); void setSubsequentAddressFamily(
			SubsequentAddressFamily subsequentAddressFamily); BinaryNextHop getNextHop(); void setNextHopAddress(byte[] nextHopAddress); void setNextHop(BinaryNextHop nextHop); List<NetworkLayerReachabilityInformation> getNlris(); void setNlris(List<NetworkLayerReachabilityInformation> nlris); AddressFamilyKey addressFamilyKey();  }
@Test public void testToAddressFamilyKey() { List<AddressFamily> afList = Arrays.asList(AddressFamily.APPLETALK, AddressFamily.BANYAN, AddressFamily.BBN1882, AddressFamily.DECNET4, AddressFamily.E163, AddressFamily.E164, AddressFamily.F69, AddressFamily.HDLC, AddressFamily.IEEE802, AddressFamily.IPv4, AddressFamily.IPv6, AddressFamily.IPX, AddressFamily.NSAP, AddressFamily.X121); List<SubsequentAddressFamily> safList = Arrays.asList(SubsequentAddressFamily.NLRI_MULTICAST_FORWARDING, SubsequentAddressFamily.NLRI_UNICAST_FORWARDING, SubsequentAddressFamily.NLRI_UNICAST_MULTICAST_FORWARDING); for(AddressFamily afi : afList) { for(SubsequentAddressFamily safi : safList) { MultiProtocolReachableNLRI pa = new MultiProtocolReachableNLRI(afi, safi); Assert.assertEquals(new AddressFamilyKey(afi, safi), pa.addressFamilyKey()); } } }