log("writeValues()");
Serializer<byte[]> serializer = new ByteArraySerializer();
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
serializer.writeObject(testBytes, outputStream);
outputStream.flush();
outputStream.close();
byte[] result = outputStream.toByteArray();