use @expectedException
add Exception package
add InlineImage filename
add @noinspection for unused local variables warning
refactor content-xxx headers and content parts