@Test
  public void replicationControlAdminRequestTest() throws IOException {
    int numOrigins = TestUtils.RANDOM.nextInt(8) + 2;
    List<String> origins = new ArrayList<>();
    for (int i = 0; i < numOrigins; i++) {
      origins.add(TestUtils.getRandomString(TestUtils.RANDOM.nextInt(8) + 2));
    }
    doReplicationControlAdminRequestTest(origins, true);
    doReplicationControlAdminRequestTest(origins, false);
    doReplicationControlAdminRequestTest(Collections.emptyList(), true);
  }
Tests the ser/de of {@link ReplicationControlAdminRequest} and checks for equality of fields with reference data.
@throws IOException
ambry-protocol/src/test/java/com/github/ambry/protocol/RequestResponseTest.java