@Test
  public void testRecoveryTokenSerDe() throws IOException {
    RecoveryToken recoveryToken = new RecoveryToken();
    RecoveryToken newRecoveryToken = RecoveryToken.fromBytes(
        new ByteBufferDataInputStream(ByteBuffer.wrap(recoveryToken.toBytes())));
    assertTrue(recoveryToken.equals(newRecoveryToken));
  }
Tests serialization of RecoveryToken
@throws IOException
ambry-cloud/src/test/java/com/github/ambry/cloud/RecoveryNetworkClientTest.java