/** This method test the test connection method. */
  public void testTest() {
    if (iDoTest) {
      // This one should work!
      try {
        FTPClient lFtpClient = new FTPClient(this.iServer, this.iUser, this.iPassword);
        lFtpClient.testFTPConnection();
      } catch (IOException ioe) {
        fail(
            "IOException thrown when testing the connection with correct data: "
                + ioe.getMessage());
      }

      // These should fail.
      try {
        FTPClient lFtpClient =
            new FTPClient("I_DO_NOT_EXIST_" + this.iServer, this.iUser, this.iPassword);
        lFtpClient.testFTPConnection();
        fail("IOException NOT thrown when testing the connection to a non-existing server!");
      } catch (IOException ioe) {
        // We want this to happen.
      }

      try {
        FTPClient lFtpClient =
            new FTPClient(this.iServer, "I_DO_NOT_EXIST_" + this.iUser, this.iPassword);
        lFtpClient.testFTPConnection();
        fail("IOException NOT thrown when testing the connection to a non-existing user!");
      } catch (IOException ioe) {
        // We want this to happen.
      }

      try {
        FTPClient lFtpClient =
            new FTPClient(this.iServer, this.iUser, "I_DO_NOT_EXIST_" + this.iPassword);
        lFtpClient.testFTPConnection();
        fail("IOException NOT thrown when testing the connection to a non-existing password!");
      } catch (IOException ioe) {
        // We want this to happen.
      }
    }
  }