tlb.addHandler(0, 5, new ImmutableExceptionHandler("LException2;", 6));
List<? extends TryBlock<? extends ExceptionHandler>> tryBlocks = tlb.getTryBlocks();
List<? extends TryBlock> expected = ImmutableList.of(
new ImmutableTryBlock(0, 5,
ImmutableList.of(
new ImmutableExceptionHandler("LException1;", 5),
new ImmutableExceptionHandler("LException2;", 6))),
new ImmutableTryBlock(5, 5,
ImmutableList.of(
new ImmutableExceptionHandler("LException1;", 5))));
Assert.assertEquals(expected, tryBlocks);
}