@Test
  public void testLockAreaEnabledDisabled() throws Exception {
    final Properties ambariProperties = new Properties();
    ambariProperties.put(Configuration.SERVER_HRC_STATUS_SUMMARY_CACHE_ENABLED.getKey(), "false");
    Configuration configuration = new Configuration(ambariProperties);

    LockArea lockArea = LockArea.HRC_STATUS_CACHE;
    lockArea.clearEnabled();

    Assert.assertFalse(lockArea.isEnabled(configuration));
  }
Tests that {@link LockArea} is correctly enabled/disabled.
ambari-server/src/test/java/org/apache/ambari/annotations/TransactionalLockTest.java