@Test
public void testAddText() {

    final String text1 = "Line1\nLine2\nDies ist ein Text.";
    final String text2 = text1 + "Text2";
    final List diffList = differenceService.diff(text1, text2);
    final int i = 1;
    for (final Iterator iter = diffList.iterator(); iter.hasNext();) {
        final ChangeInfo changeInfo = (ChangeInfo) iter.next();
        assertEquals("Type must be CHANGE", changeInfo.getType(), ChangeInfo.CHANGE);
        assertEquals("Wrong line content.", changeInfo.getLines()[0], "Dies ist ein Text.");
        assertEquals("Wrong line content.", changeInfo.getLines()[1], "Dies ist ein Text.Text2");
    }
}