code: def test_set_new_app_protocol(self):
      waiter = self.loop.create_future()
      ssl_proto = self.ssl_protocol(waiter=waiter)
      new_app_proto = asyncio.Protocol()
      ssl_proto._app_transport.set_protocol(new_app_proto)
      self.assertIs(
          ssl_proto._app_transport.get_protocol(), new_app_proto
      )
      self.assertIs(ssl_proto._app_protocol, new_app_proto)
  
imports: import logging
  import socket
  import unittest
  import weakref
  from test import support
  from test.support import socket_helper
  from unittest import mock
  import asyncio
  from asyncio import log
  from asyncio import protocols
  from asyncio import sslproto
  from test.test_asyncio import utils
  from test.test_asyncio import functional
label_desc: Use image node_id 12 for calling the SslProtoHandshakeTests obj's underlying member method code with example usage: obj.test_set_new_app_protocol() without return types