@Test public void testCreateKeyValuePairSetAdaptrisMessage() { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); assertNull(SimpleNamespaceContext.create(null, msg)); assertNull(SimpleNamespaceContext.create(new KeyValuePairSet(), msg)); NamespaceContext ctx = SimpleNamespaceContext.create(createNamespaceEntries()); msg.addObjectHeader(SimpleNamespaceContext.class.getCanonicalName(), ctx); NamespaceContext ctx2 = SimpleNamespaceContext.create(null, msg); assertEquals(ctx, ctx2); NamespaceContext ctx3 = SimpleNamespaceContext.create(createNamespaceEntries(), msg); assertNotSame(ctx, ctx3); }
public static NamespaceContext create(KeyValuePairSet set) { if (set == null || set.size() == 0) { return null; } return new NamespaceContextMap(set); }
SimpleNamespaceContext { public static NamespaceContext create(KeyValuePairSet set) { if (set == null || set.size() == 0) { return null; } return new NamespaceContextMap(set); } }
SimpleNamespaceContext { public static NamespaceContext create(KeyValuePairSet set) { if (set == null || set.size() == 0) { return null; } return new NamespaceContextMap(set); }  }
SimpleNamespaceContext { public static NamespaceContext create(KeyValuePairSet set) { if (set == null || set.size() == 0) { return null; } return new NamespaceContextMap(set); }  static NamespaceContext create(KeyValuePairSet set); static NamespaceContext create(KeyValuePairSet set, AdaptrisMessage msg); }
SimpleNamespaceContext { public static NamespaceContext create(KeyValuePairSet set) { if (set == null || set.size() == 0) { return null; } return new NamespaceContextMap(set); }  static NamespaceContext create(KeyValuePairSet set); static NamespaceContext create(KeyValuePairSet set, AdaptrisMessage msg);  }