assertTrue(argNames.contains("other"));
}
@Test
public void testComplete() throws Exception {
DefaultCallbackHandler handler = new DefaultCallbackHandler();
parseOperation(":read-resource(recursive=true,other=done)", 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()); // there are headers
assertEquals("read-resource", handler.getOperationName());
Set<String> argNames = handler.getPropertyNames();
assertEquals(2, argNames.size());
assertTrue(argNames.contains("recursive"));
assertEquals("true", handler.getPropertyValue("recursive"));
assertTrue(argNames.contains("other"));
assertEquals("done", handler.getPropertyValue("other"));
}