protected boolean validateMpackInfo(
          String expectedMpackName,
          String expectedMpackVersion,
          String actualMpackName,
          String actualMpackVersion) {

    if (expectedMpackName.equalsIgnoreCase(actualMpackName) && expectedMpackVersion
            .equalsIgnoreCase(actualMpackVersion)) {
      return true;
    } else {
      LOG.info("Incorrect information : Mismatch in - (" + expectedMpackName + "," + actualMpackName + ") or ("
              + expectedMpackVersion + "," + actualMpackVersion + ")");
      return false;
    }
  }
Compares if the user's mpack information matches the downloaded mpack information.

@param expectedMpackName
@param expectedMpackVersion
@param actualMpackName
@param actualMpackVersion
@return boolean
ambari-server/src/test/java/org/apache/ambari/server/mpack/MpackManagerMock.java