@@ -0,0 +1,1729 @@
+package com.orientechnologies.orient.distributed.impl.coordinator.network;%0A%0Aimport com.orientechnologies.orient.distributed.impl.coordinator.OSubmitRequest;%0Aimport com.orientechnologies.orient.distributed.impl.coordinator.ddl.ODDLQuerySubmitRequest;%0Aimport com.orientechnologies.orient.distributed.impl.coordinator.transaction.OSessionOperationId;%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport java.io.*;%0A%0Apublic class ONetworkSubmitRequestTest %7B%0A%0A  @Test%0A  public void testSerialize() throws IOException %7B%0A%0A    String db = %22testDb%22;%0A    OSessionOperationId opId = new OSessionOperationId(%22foo%22);%0A    ODDLQuerySubmitRequest req = new ODDLQuerySubmitRequest(%22create class FooBar%22);%0A    ONetworkSubmitRequest request = new ONetworkSubmitRequest(db, opId, req);%0A%0A%0A    ByteArrayOutputStream baos = new ByteArrayOutputStream();%0A    DataOutputStream out = new DataOutputStream(baos);%0A    request.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    ONetworkSubmitRequest request2 = new ONetworkSubmitRequest();%0A    request2.read(in);%0A    in.close();%0A    bais.close();%0A%0A%0A    Assert.assertEquals(request.getCommand(), request2.getCommand());%0A    Assert.assertEquals(request.getDatabase(), request2.getDatabase());%0A    Assert.assertEquals(request.getOperationId(), request2.getOperationId());%0A    OSubmitRequest req2 = request2.getRequest();%0A    Assert.assertEquals(req.getRequestType(), req2.getRequestType());%0A    Assert.assertEquals(req.getClass(), req2.getClass());%0A    Assert.assertEquals(req.getQuery(), ((ODDLQuerySubmitRequest)req2).getQuery());%0A%0A  %7D%0A%7D%0A%0A%0A

Add serialization tests for ONetworkSubmitRequest