static HasBar readHasBar(Input input) throws IOException
    {
        ObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(
                input.readByteArray()));
        try
        {
            return (HasBar) ois.readObject();
        }
        catch (Exception e)
        {
            throw new RuntimeException(e);
        }
        finally
        {
            ois.close();
        }
    }
@param hasBar
           the hasBar to set
protostuff-core/src/test/java/io/protostuff/HasHasBar.java