### Question:
AuthenticateToRealmCondition extends EntitlementConditionAdaptor { @Override public void validate() throws EntitlementException { if (StringUtils.isBlank(authenticateToRealm)) { throw new EntitlementException(PROPERTY_VALUE_NOT_DEFINED, AUTHENTICATE_TO_REALM); } } AuthenticateToRealmCondition();   AuthenticateToRealmCondition(Debug debug, EntitlementCoreWrapper entitlementCoreWrapper); @Override void setState(String state); @Override String getState(); @SuppressWarnings("unchecked") @Override ConditionDecision evaluate(String realm, Subject subject, String resourceName, Map<String, Set<String>> env); @Override String toString(); String getAuthenticateToRealm(); void setAuthenticateToRealm(String authenticateToRealm); @Override void validate(); @Override boolean equals(Object obj); @Override int hashCode();  }### Answer:
@Test(expectedExceptions = EntitlementException.class) public void conditionShouldThrowEntitlementExceptionWhenValidatingWithNoAuthenticateToRealmSet() throws EntitlementException { condition.validate(); }