Gudkov Konstantin 394 Junit 

Можно просто   catch (NullPointerException | IOException e)