### Question:
Packetizer implements SessionData, TransportPacket { public void sessionControl( Object control, Object value ) throws Exception { session.sessionControl( control, value ); } 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 sessionControl() throws Exception { Object CONTROL = "foo"; Object VALUE = "bar"; assertNull( session.what ); assertNull( session.control ); assertNull( session.value ); p.sessionControl( CONTROL, VALUE ); assertSame( What.SESSION_CONTROL, session.what ); assertSame( CONTROL, session.control ); assertSame( VALUE, session.value ); }