@Test
public void testOperationNameWithPrefix() throws Exception {
OperationRequestAddress prefix = new DefaultOperationRequestAddress();
prefix.toNodeType("subsystem");
DefaultCallbackHandler handler = new DefaultCallbackHandler(prefix);
parse("./logging:read-resource", handler);
assertTrue(handler.hasAddress());
assertTrue(handler.hasOperationName());
assertFalse(handler.hasProperties());
assertFalse(handler.endsOnAddressOperationNameSeparator());
assertFalse(handler.endsOnPropertyListStart());
assertFalse(handler.endsOnPropertySeparator());
assertFalse(handler.endsOnPropertyValueSeparator());
assertFalse(handler.endsOnNodeSeparator());
assertFalse(handler.endsOnNodeTypeNameSeparator());
assertFalse(handler.isRequestComplete());
assertEquals("read-resource", handler.getOperationName());
OperationRequestAddress address = handler.getAddress();
Iterator<Node> i = address.iterator();
assertTrue(i.hasNext());
Node node = i.next();
assertEquals("subsystem", node.getType());
assertEquals("logging", node.getName());