assertEquals( snc.localName, "def");
}
public void testSimplifier3() throws Exception {
NameClass nc = NameClassSimplifier.simplify(
new DifferenceNameClass(
NameClass.ALL,
new DifferenceNameClass(
new NamespaceNameClass("abc"),
new SimpleNameClass("abc","def"))));
assertTrue( nc instanceof NotNameClass );
NotNameClass nnc = (NotNameClass)nc;
assertTrue( nnc.child instanceof DifferenceNameClass );
DifferenceNameClass dnc = (DifferenceNameClass)nnc.child;
assertTrue( dnc.nc1 instanceof NamespaceNameClass );
NamespaceNameClass nc1 = (NamespaceNameClass)dnc.nc1;
assertEquals( "abc",nc1.namespaceURI );
assertTrue( dnc.nc2 instanceof SimpleNameClass );
SimpleNameClass nc2 = (SimpleNameClass)dnc.nc2;