### Question:
RemoteBase { public Object _transportQuery( Object query ) throws Exception { return _svc.transportQuery( query ); } RemoteBase( DeliveryService svc, ValueFactory vf ); @Override String toString(); final Message _newMessage( Type type ); void _send( Message msg ); Mailbox _begincall( Message msg ); Object _endcall( Mailbox mb, Type responseType ); Object _transportQuery( Object query ); void _transportControl( Object control, Object value ); void _transportNotify( Object event ); void _start(); void _waitUp( int maxDelay ); void _startAndWaitUp( int maxDelay ); void _stop(); void _waitDown( int maxDelay ); void _stopAndWaitDown( int maxDelay );  }### Answer:
@Test public void transportQuery() throws Exception { Object QUERY = "foo"; Object RESULT = "bar"; assertNull( transport.what ); assertNull( transport.query ); transport.query_result = RESULT; Object result = remote._transportQuery( QUERY ); assertSame( What.TRANSPORT_QUERY, transport.what ); assertSame( QUERY, transport.query ); assertSame( RESULT, result ); }