code: public static void validateEqualTo( long value, long condition, String identifier )
          throws PreConditionException
      {
          if( value == condition )
          {
              return;
          }
          throw new PreConditionException( identifier + " was not equal to " + condition + ". Was: " + value );
      }
docs: Validates that the value under test is a particular value.
  <p/>
  This method ensures that <code>value == condition</code>.
  
  @param identifier The name of the object.
  @param condition  The condition value.
  @param value      The value to be tested.
  
  @throws PreConditionException if the condition is not met.