@Before
  public void setUp() throws Exception {
    handler = new StoreFileCopyHandler(connectionPool, storeManager, clusterMap, fileCopyBasedReplicationConfig , storeConfig);
    handler.setOperationRetryHandler(retryHandler);
    handler.start();

    when(fileCopyInfo.getTargetReplicaId()).thenReturn(mock(ReplicaId.class));
    when(fileCopyInfo.getTargetReplicaId().getPartitionId()).thenReturn(mock(PartitionId.class));

    when(metadataResponse.getError()).thenReturn(ServerErrorCode.NoError);
  }
Set up the pre-requisites:
 create a {@link StoreFileCopyHandler} instance.
 create a {@link GetMetadataWorkflow} instance.
@throws StoreException
ambry-file-transfer/src/test/java/com/github/ambry/filetransfer/handler/StoreFileCopyHandlerTest.java