@@ -0,0 +1,1633 @@
+package com.orientechnologies.orient.distributed.impl.coordinator.network;%0A%0Aimport com.orientechnologies.orient.core.db.config.ONodeIdentity;%0Aimport com.orientechnologies.orient.distributed.impl.log.OLogId;%0Aimport com.orientechnologies.orient.distributed.impl.structural.operations.ODatabaseLeaderElected;%0Aimport com.orientechnologies.orient.distributed.impl.structural.raft.ONodeJoin;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.io.*;%0Aimport java.util.Optional;%0A%0Apublic class ONetworkPropagateTest %7B%0A%0A  @Test%0A  public void testSerialize() throws IOException %7B%0A%0A    ONodeIdentity leader = new ONodeIdentity(%22foo%22, %22bar%22);%0A    ONodeJoin join = new ONodeJoin(leader);%0A    OLogId oplogId = new OLogId(10, 20, 19);%0A    ONetworkPropagate operation = new ONetworkPropagate(oplogId, join);%0A%0A    ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A    DataOutputStream out = new DataOutputStream(baos);%0A    operation.write(out);%0A    byte%5B%5D serialized = baos.toByteArray();%0A    out.close();%0A    baos.close();%0A    ByteArrayInputStream bais = new ByteArrayInputStream(serialized);%0A    DataInputStream in = new DataInputStream(bais);%0A%0A    ONetworkPropagate operation2 = new ONetworkPropagate();%0A    operation2.read(in);%0A    in.close();%0A    bais.close();%0A%0A    Assert.assertEquals(operation.getCommand(), operation2.getCommand());%0A    Assert.assertEquals(operation.getId(), operation2.getId());%0A    ONodeJoin join2 = (ONodeJoin) operation2.getOperation();%0A    Assert.assertEquals(join.getRequestType(), join2.getRequestType());%0A    Assert.assertEquals(join.getRequesterSequential(), join2.getRequesterSequential());%0A  %7D%0A%7D%0A%0A%0A

Add serialization tests for ONetworkPropagate