Exception Assertion Template For Eclipse
How to use:
1. Select code throwing exception
2. Alt + Shift + Z -> select corresponding template.
try
{
${line_selection}${cursor}
fail("${Exception} expected.");
}
catch (${Exception} e)
{
assertEquals(${message}, e.getMessage());
}