/**
   * Un-marshal an object instance from the data input stream
   *
   * @param o the object to un-marshal
   * @param dataIn the data input stream to build the object from
   * @throws IOException
   */
  public void looseUnmarshal(OpenWireFormat wireFormat, Object o, DataInput dataIn)
      throws IOException {
    super.looseUnmarshal(wireFormat, o, dataIn);

    ConsumerId info = (ConsumerId) o;
    info.setConnectionId(looseUnmarshalString(dataIn));
    info.setSessionId(looseUnmarshalLong(wireFormat, dataIn));
    info.setValue(looseUnmarshalLong(wireFormat, dataIn));
  }
  /**
   * Un-marshal an object instance from the data input stream
   *
   * @param o the object to un-marshal
   * @param dataIn the data input stream to build the object from
   * @throws IOException
   */
  public void tightUnmarshal(
      OpenWireFormat wireFormat, Object o, DataInput dataIn, BooleanStream bs) throws IOException {
    super.tightUnmarshal(wireFormat, o, dataIn, bs);

    ConsumerId info = (ConsumerId) o;
    info.setConnectionId(tightUnmarshalString(dataIn, bs));
    info.setSessionId(tightUnmarshalLong(wireFormat, dataIn, bs));
    info.setValue(tightUnmarshalLong(wireFormat, dataIn, bs));
  }
  @Override
  protected void populateObject(Object object) throws Exception {
    super.populateObject(object);
    ConsumerId info = (ConsumerId) object;

    info.setConnectionId("ConnectionId:1");
    info.setSessionId(1);
    info.setValue(2);
  }