NATBehavior implements Attribute { public Set<NATFeature> getNATFeatures() { return this.behavior.keySet(); } NATBehavior();  NATBehavior(final NATFeatureRealization mapping, final NATFeatureRealization filtering); NATFeatureRealization getFeatureRealization(final NATFeature natFeature); Set<NATFeature> getNATFeatures(); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString(); static NATBehavior fromBytes(final byte[] encoded, final AttributeHeader header); @Override AttributeType getType(); @Override int getLength(); @Override void writeTo(final OutputStream out);  }
@Test public void testGetNATFeatures() { Set<NATFeature> expected = new HashSet<NATFeature>(); expected.add(NATFeature.FILTERING); expected.add(NATFeature.MAPPING); Set<NATFeature> feature = this.behavior.getNATFeatures(); assertTrue(feature.containsAll(expected)); }