@BeforeClass
  public static void initializeTests() throws Exception {
    Properties properties = getRouterProperties("DC1");

    Properties serverProperties = new Properties();
    TestSSLUtils.addHttp2Properties(serverProperties, SSLFactory.Mode.SERVER, true);
    plaintextCluster = new MockCluster(serverProperties, false, SystemTime.getInstance());
    MockNotificationSystem notificationSystem = new MockNotificationSystem(plaintextCluster.getClusterMap());
    plaintextCluster.initializeServers(notificationSystem);
    plaintextCluster.startServers();
    MockClusterMap routerClusterMap = plaintextCluster.getClusterMap();
    // MockClusterMap returns a new registry by default. This is to ensure that each node (server, router and so on,
    // get a different registry. But at this point all server nodes have been initialized, and we want the router and
    // its components, which are going to be created, to use the same registry.
    routerClusterMap.createAndSetPermanentMetricRegistry();
    testFramework = new RouterServerTestFramework(properties, routerClusterMap, notificationSystem);
    routerMetricRegistry = routerClusterMap.getMetricRegistry();

    refAccount = testFramework.accountService.createAndAddRandomAccount();
    Iterator<Container> allContainers = refAccount.getAllContainers().iterator();
    // container with null replication policy
    Container container = allContainers.next();
    container = testFramework.accountService.addReplicationPolicyToContainer(container, null);
    refContainers.add(container);
    // container with configured default replication policy
    container = allContainers.next();
    container =
        testFramework.accountService.addReplicationPolicyToContainer(container, MockClusterMap.DEFAULT_PARTITION_CLASS);
    refContainers.add(container);
    // container with a special replication policy
    container = allContainers.next();
    container =
        testFramework.accountService.addReplicationPolicyToContainer(container, MockClusterMap.SPECIAL_PARTITION_CLASS);
    refContainers.add(container);
  }
Instantiates {@link RouterServerPlaintextTest}
@param testEncryption {@code true} if blobs need to be tested w/ encryption. {@code false} otherwise
ambry-server/src/integration-test/java/com/github/ambry/server/RouterServerPlaintextTest.java