public void testWriteValue() {
ByteArrayOutputStream out = new ByteArrayOutputStream();
XmlWriter xmlWriter = new XmlWriter(out);
LockInfo lockInfo = new LockInfo(LockInfo.LockScope.EXCLUSIVE, LockInfo.LockType.READ, null, LockInfo.LockDepth.ZERO);
LockTimeout lockTimeout = new LockTimeout(1000l);
LockToken token = new LockToken("abc123", lockInfo, lockTimeout);
Map<String,String> prefixes = new HashMap<String, String>();
valueWriter.writeValue(xmlWriter, "ns", "pre", "lock", token, "/test", prefixes);