spool(out, v.getStream());
assertEquals("abc", new String(out.toByteArray()));
}
public void testEmptyBinaryFromByteArray() throws RepositoryException, IOException {
QValue v = factory.create(new byte[0]);
assertEquals(PropertyType.BINARY, v.getType());
assertEquals(0, v.getLength());
assertEquals("", v.getString());
ByteArrayOutputStream out = new ByteArrayOutputStream();
spool(out, v.getStream());
assertEquals("", new String(out.toByteArray()));
}