  @Test
  public void testTransferUTF8BOM() throws Exception {


    myRunnerParameters.put(FTPRunnerConstants.PARAM_TRANSFER_MODE, FTPRunnerConstants.TRANSFER_MODE_BINARY);
    File sourceXml = new File("src/test/resources/data.xml");
    if (!sourceXml.exists()) {
      sourceXml = new File("deploy-runner-agent/src/test/resources/data.xml");
    }

    Map<File, String> map = new HashMap<File, String>();
    map.put(sourceXml, "");
    myArtifactsCollections.add(new ArtifactsCollection("", "", map));
    final BuildProcess process = getProcess("127.0.0.1:" + testPort);
    DeployTestUtils.runProcess(process, 5000);

    File[] files = myRemoteDir.listFiles();
    assertNotNull(files);

    assertEquals(files[0].length(), sourceXml.length());
  }