### Question:
Packetizer implements SessionData, TransportPacket { public Object sessionQuery( Object query ) throws Exception { return session.sessionQuery( query ); } 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 sessionQuery() throws Exception { Object QUERY = "foo"; Object RESULT = "bar"; assertNull( session.what ); assertNull( session.query ); session.query_result = RESULT; Object result = p.sessionQuery( QUERY ); assertSame( What.SESSION_QUERY, session.what ); assertSame( QUERY, session.query ); assertSame( RESULT, result ); }