SchemaAnalyzerPositionIterator implements PositionIterator { @Override public boolean hasNext( PayloadPosition payloadPosition ) { Iterator<AnyElementProperties> iterator = anyElementIteratorMap.get( payloadPosition ); if ( iterator != null ) { return iterator.hasNext(); } else { return false; } } SchemaAnalyzerPositionIterator( SchemaAnalyzer schemaAnalyzer, String xmlMessage ); @Override void reset(); @Override boolean hasNext( PayloadPosition payloadPosition ); @Override Position next( PayloadPosition payloadPosition );  }
@Test public void noExpansionPointTest() { String xmlMessage2 = "<?xml version=\"1.0\"?><Envelope><Header></Header><Body></Body></Envelope>"; SchemaAnalyzerPositionIterator positionIterator = new SchemaAnalyzerPositionIterator( schemaAnalyzer, xmlMessage2 ); assertFalse( positionIterator.hasNext( PayloadPosition.ELEMENT ) ); assertFalse( positionIterator.hasNext( PayloadPosition.ATTRIBUTE ) ); }