code: def testBadConstruction(self):
      empty_config = presto_config_pb2.PrestoConnConfig()
      self.assertRaises(
          RuntimeError,
          component.PrestoExampleGen,
          conn_config=empty_config,
          query="",
      )
  
      port_only_config = presto_config_pb2.PrestoConnConfig(port=8080)
      self.assertRaises(
          RuntimeError,
          component.PrestoExampleGen,
          conn_config=port_only_config,
          query="",
      )
  
file_path: tfx/tfx/examples/custom_components/presto_example_gen/presto_component/component_test.py
imports: import tensorflow
  from tfx.examples.custom_components.presto_example_gen.presto_component import component
  from tfx.examples.custom_components.presto_example_gen.proto import presto_config_pb2
  from tfx.proto import example_gen_pb2
  from tfx.types import standard_artifacts
  from tfx.utils import proto_utils
label_desc: Use image node_id 4 for calling the ComponentTest obj's underlying member method code with example usage: obj.testBadConstruction() without return types