tlb.addHandler(5, 15, 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 ImmutableTryBlock(5, 5,
ImmutableList.of(
new ImmutableExceptionHandler("LException1;", 5),
new ImmutableExceptionHandler("LException2;", 6))),
new ImmutableTryBlock(10, 5,
ImmutableList.of(
new ImmutableExceptionHandler("LException2;", 6))));
Assert.assertEquals(expected, tryBlocks);
}