private MetadataRecord readFrom(final byte[] bytes) throws IOException, ClassNotFoundException {
final ObjectInputStream objectsIn = new ObjectInputStream(new ByteArrayInputStream(bytes));
final MetadataRecord roundTripMetadata = new MetadataRecord();
roundTripMetadata.readExternal(objectsIn);
return roundTripMetadata;
}