public void setPropertyToAmbryRequests(Properties properties, String propertyKey, String propertyValue)
      throws IOException, InterruptedException, StoreException {
    storageManager.shutdown();
    properties.setProperty(propertyKey, propertyValue); //Adds the new key-value pair

    //Initializes the new environment through clusterMap, storageManager, and AmbryRequests
    ClusterMap clusterMap = new MockClusterMap();
    DiskManagerConfig diskManagerConfig = new DiskManagerConfig(new VerifiableProperties(properties));
    storageManager =
        new MockStorageManager(validKeysInStore, clusterMap, dataNodeId, findTokenHelper, null, diskManagerConfig);
    ambryRequests = new AmbryServerRequests(storageManager, requestResponseChannel, clusterMap, dataNodeId,
        clusterMap.getMetricRegistry(), serverMetrics, findTokenHelper, null, replicationManager, null, serverConfig,
        diskManagerConfig, storeKeyConverterFactory, statsManager, helixParticipant);
    storageManager.start();
  }
Allows an extra property to be made and then encapsulates this property in a new environment to be tested on
@param properties the set of properties this environment will have
@param propertyKey the new key to be added to the properties variable
@param propertyValue the new value for the propertyKey
@throws IOException
@throws InterruptedException
@throws StoreException
ambry-server/src/test/java/com/github/ambry/server/AmbryServerRequestsTest.java