//deserialize object
try {
InputStream is = new ByteArrayInputStream(response.getBodyBytes());
ObjectInput oi = new ObjectInputStream(is);
testobj = (JafSerializableObj) oi.readObject();
oi.close();
} catch (ClassNotFoundException e) {
System.out.println("TestJAFProvider: " + e.toString());
assertTrue(false);
} catch (StreamCorruptedException e) {