Object p = inObjects.readObject();
inObjects.close();
assertNotNull("Read object must not be null", p);
assertTrue("Object must be instanceof Project class", p instanceof Project);
Project deserializedProject = (Project) p;
deserializedProject.addBuildProgressListener(new BuildProgressListener() {
public void handleBuildProgress(BuildProgressEvent event) {
}
});
}