ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
PmInputStream pis = new PmInputStream(bais);
Primitives p1 = pis.readModel();
Assert.assertEquals(0, pis.available());
pos.close();
pis.close();
Assert.assertEquals(p0.isBooleanValue(), p1.isBooleanValue());
Assert.assertEquals(p0.getByteValue(), p1.getByteValue());