it isn't terribly clear in the scope of this test, why an IOE is expected on close.  Might be helpful to add the assertEquals if the message clears it up.