assertTrue(argNames.contains("recursive"));
}
@Test
public void testNameValue() throws Exception {
DefaultCallbackHandler handler = new DefaultCallbackHandler();
parseOperation(":read-resource(recursive=true", handler);
assertFalse(handler.hasAddress());
assertTrue(handler.hasOperationName());
assertTrue(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());
Set<String> argNames = handler.getPropertyNames();
assertEquals(1, argNames.size());
assertTrue(argNames.contains("recursive"));
assertEquals("true", handler.getPropertyValue("recursive"));
}