@Test
public void splitBracketsAsList() throws Exception {

	List<String> tab;
	
	tab = TextUtil.splitBracketsAsList("{a}{b}{c}{d}");  //$NON-NLS-1$
	assertCollectionEquals(Arrays.asList(
			"a",  //$NON-NLS-1$
			"b",  //$NON-NLS-1$
			"c",  //$NON-NLS-1$
			"d"  //$NON-NLS-1$
		), tab);
	tab = TextUtil.splitBracketsAsList("start {a}bbb {b eee}{c}{d}zzz end");  //$NON-NLS-1$
	assertCollectionEquals(Arrays.asList(
			"start",  //$NON-NLS-1$
			"a",  //$NON-NLS-1$
			"bbb",  //$NON-NLS-1$
			"b eee",  //$NON-NLS-1$
			"c",  //$NON-NLS-1$
			"d",  //$NON-NLS-1$
			"zzz end"  //$NON-NLS-1$
		), tab);
	tab = TextUtil.splitBracketsAsList("start {a}bbb {b {eee}}{c}{d}zzz end");  //$NON-NLS-1$
	assertCollectionEquals(Arrays.asList(
			"start",  //$NON-NLS-1$
			"a",  //$NON-NLS-1$
			"bbb",  //$NON-NLS-1$
			"b {eee}",  //$NON-NLS-1$
			"c",  //$NON-NLS-1$
			"d",  //$NON-NLS-1$
			"zzz end"  //$NON-NLS-1$
		), tab);
	tab = TextUtil.splitBracketsAsList("start {a}bbb {b {e{e{e}f}}}{c}{d}zzz end");  //$NON-NLS-1$
	assertCollectionEquals(Arrays.asList(
			"start",  //$NON-NLS-1$
			"a",  //$NON-NLS-1$
			"bbb",  //$NON-NLS-1$
			"b {e{e{e}f}}",  //$NON-NLS-1$
			"c",  //$NON-NLS-1$
			"d",  //$NON-NLS-1$
			"zzz end"  //$NON-NLS-1$
		), tab);
	tab = TextUtil.splitBracketsAsList("start {a}bbb {b {e{e{e}f}}}{}{d}zzz end");  //$NON-NLS-1$
	assertCollectionEquals(Arrays.asList(
			"start",  //$NON-NLS-1$
			"a",  //$NON-NLS-1$
			"bbb",  //$NON-NLS-1$
			"b {e{e{e}f}}",  //$NON-NLS-1$
			"",  //$NON-NLS-1$
			"d",  //$NON-NLS-1$
			"zzz end"  //$NON-NLS-1$
		), tab);
}