assertEquals(e.toString(), Main.getLocalizedMessage(e));
assertTrue(wasStackTraceLogged[0]);
// localized exception
assertEquals(Labels.getLabel("exception.FeederException.malformedIP"),
Main.getLocalizedMessage(new FeederException("malformedIP")));
// message-less localized exception
assertEquals(Labels.getLabel("exception.OutOfMemoryError"),
Main.getLocalizedMessage(new OutOfMemoryError()));
}