UBL21NamespaceContext extends MapBasedNamespaceContext { @Nonnull public static UBL21NamespaceContext getInstance () { return SingletonHolder.s_aInstance; } protected  UBL21NamespaceContext(); @Nonnull static UBL21NamespaceContext getInstance();  }
@Test public void testIssue25 () { final MapBasedNamespaceContext aNSCtx = UBL21NamespaceContext.getInstance ().getClone (); assertSame (EChange.CHANGED, aNSCtx.removeMapping ("cec")); assertSame (EChange.UNCHANGED, aNSCtx.removeMapping ("cec")); }
@Test @Ignore ("Fails") public void testIssue25v2 () { try { final UBL21NamespaceContext aNSCtx0 = UBL21NamespaceContext.getInstance (); final MapBasedNamespaceContext aNSCtx = UBL21NamespaceContext.getInstance ().getClone (); assertSame (EChange.CHANGED, aNSCtx0.removeMapping ("cec")); assertSame (EChange.UNCHANGED, aNSCtx0.removeMapping ("cec")); assertSame (EChange.CHANGED, aNSCtx.removeMapping ("cec")); assertSame (EChange.UNCHANGED, aNSCtx.removeMapping ("cec")); } finally { UBL21NamespaceContext.getInstance ().addMapping ("cec", CUBL21.XML_SCHEMA_CEC_NAMESPACE_URL); } }