}
public void testReadWsPolicy() throws Exception {
XMLStreamReader reader = inputFactory.createXMLStreamReader(new StringReader(VALID_WS_POLICY));
WSPolicyProcessor processor = new WSPolicyProcessor();
Object artifact = null;
QName name = null;
reader.next();
while ( true ) {
int event = reader.getEventType();
switch (event) {
case START_ELEMENT: {
name = reader.getName();
if(WSPolicyProcessor.WS_POLICY_QNAME.equals(name)) {
artifact = processor.read(reader);
}
break;
}
}