code: def test_validate_should_raise_exception_if_optional_clause_is_false_and_field_not_present(
      self,
  ):
      specification = [
          dict(name="name", allow_empty=False, optional=False)
      ]
      body = {}
  
      validator = GcpBodyFieldValidator(specification, "v1")
  
      with pytest.raises(GcpFieldValidationException):
          validator.validate(body)
  
imports: from __future__ import annotations
  import pytest
  from airflow.providers.google.cloud.utils.field_validator import GcpBodyFieldValidator, GcpFieldValidationException, GcpValidationSpecificationException
label_desc: Use image node_id 14 for calling the TestGcpBodyFieldValidator obj's underlying member method code with example usage: obj.test_validate_should_raise_exception_if_optional_clause_is_false_and_field_not_present() without return types