@Test
public void cutString() throws Exception {

	String src, res, actual;
	
	src = Locale.getString("A_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("A_RESULT");  //$NON-NLS-1$
	actual = TextUtil.cutString(src, 80);
	assertNotNull(actual);
	assertEquals(res, actual, "A:");  //$NON-NLS-1$
	src = Locale.getString("B_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("B_RESULT");  //$NON-NLS-1$
	actual = TextUtil.cutString(src, 80);
	assertNotNull(actual);
	assertEquals(res, actual, "B:");  //$NON-NLS-1$
	src = Locale.getString("C_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("C_RESULT");  //$NON-NLS-1$
	actual = TextUtil.cutString(src, 80);
	assertNotNull(actual);
	assertEquals(res, actual, "C:");  //$NON-NLS-1$
	src = Locale.getString("D_SOURCE");  //$NON-NLS-1$
	res = Locale.getString("D_RESULT");  //$NON-NLS-1$
	actual = TextUtil.cutString(src, 80);
	assertNotNull(actual);
	assertEquals(res, actual, "D:");  //$NON-NLS-1$
}