@Test
  public void testRequired() throws Exception {
    UpgradeCheckRequest rolling = new UpgradeCheckRequest(null, UpgradeType.ROLLING, null, null, null);
    UpgradeCheckRequest express = new UpgradeCheckRequest(null, UpgradeType.NON_ROLLING, null, null, null);

    UpgradeTypeQualification rollingQualification = new UpgradeTypeQualification(RollingTestCheckImpl.class);

    Assert.assertTrue(rollingQualification.isApplicable(rolling));
    Assert.assertFalse(rollingQualification.isApplicable(express));

    UpgradeTypeQualification notRequiredQualification = new UpgradeTypeQualification(NotRequiredCheckTest.class);
    Assert.assertTrue(notRequiredQualification.isApplicable(rolling));
    Assert.assertTrue(notRequiredQualification.isApplicable(express));
  }
Tests whether the {@link UpgradeCheckInfo} annotation is correctly
analyzed.
ambari-server/src/test/java/org/apache/ambari/server/checks/UpgradeTypeQualificationTest.java