}
public void testIOExceptionInPartHeaders() throws Exception {
InputStream in = getTestResource(TestConstants.MTOM_MESSAGE.getName());
try {
Attachments attachments = new Attachments(new ExceptionInputStream(in, 1050), TestConstants.MTOM_MESSAGE.getContentType());
// TODO: decide what exception should be thrown exactly here
try {
attachments.getDataHandler("1.urn:uuid:A3ADBAEE51A1A87B2A11443668160943@apache.org");
fail("Expected exception");
} catch (OMException ex) {