message: demo auto-deref raw_query
diff: @@ -255,6 +255,7 @@ impl<'a> QuerierWrapper<'a> {
  mod test {
  use super::*;
  use crate::mock::MockQuerier;
  + use crate::{coins, from_slice, Uint128};
  // this is a simple demo helper to prove we can use it
  fn demo_helper(_querier: &dyn Querier) -> u64 {
  @@ -275,4 +276,22 @@ mod test {
  let res = demo_helper(wrapper.deref());
  assert_eq!(2, res);
  }
  +
  + #[test]
  + fn auto_deref_raw_query() {
  + let acct = HumanAddr::from("foobar");
  + let querier: MockQuerier<Empty> = MockQuerier::new(&[(&acct, &coins(5, "BTC"))]);
  + let wrapper = QuerierWrapper::new(&querier);
  + let query = QueryRequest::<Empty>::Bank(BankQuery::Balance {
  + address: acct,
  + denom: "BTC".to_string(),
  + });
  +
  + let raw = wrapper
  + .raw_query(&to_vec(&query).unwrap())
  + .unwrap()
  + .unwrap();
  + let balance: BalanceResponse = from_slice(&raw).unwrap();
  + assert_eq!(balance.amount.amount, Uint128(5));
  + }
  }
  