createBlob(con, b, body);
// read partial body
byte[] buf = new byte[100];
InputStream is = b.openInputStream();
int got = is.read(buf, 0, 10);
assertTrue(got > 0 && got <= 10, "Invalid number of bytes read: " + got);
int len = got;
is.close();
assertEquals(new String(buf, 0, len, "UTF-8"), body.substring(0, len));