### Question:
Packetizer implements SessionData, TransportPacket { public void transportNotify( Object event ) throws Exception { transport.transportNotify( event ); } Packetizer( TransportData transport, String uri, Resources resources );  Packetizer( TransportData transport, URL uri, Resources resources ); private  Packetizer( TransportData transport, int maxPktSize ); TransportData getTransport(); @Override String toString(); void sessionData( Who sender, FlexBuffer buf ); void transportPacket( Who recipient, FlexBuffer buf ); int headerSize(); Object sessionQuery( Object query ); void sessionControl( Object control, Object value ); void sessionNotify( Object event ); Object transportQuery( Object query ); void transportControl( Object control, Object value ); void transportNotify( Object event ); SessionPacket getSession(); void setSession( SessionPacket session ); final static String MAX_PKT_SIZE_TERM; final static int DEFAULT_MAX_PKT_SIZE; }### Answer:
@Test public void transportNotify() throws Exception { Object EVENT = "foo"; assertNull( transport.what ); assertNull( transport.event ); p.transportNotify( EVENT ); assertSame( What.TRANSPORT_NOTIFY, transport.what ); assertSame( EVENT, transport.event ); }