public class EditListTest extends TestCase {
public void testHunkHeader() throws IOException {
final Patch p = parseTestPatchFile("testGetText_BothISO88591.patch");
final FileHeader fh = p.getFiles().get(0);
final EditList list0 = fh.getHunks().get(0).toEditList();
assertEquals(1, list0.size());
assertEquals(new Edit(4 - 1, 5 - 1, 4 - 1, 5 - 1), list0.get(0));
final EditList list1 = fh.getHunks().get(1).toEditList();
assertEquals(1, list1.size());
assertEquals(new Edit(16 - 1, 17 - 1, 16 - 1, 17 - 1), list1.get(0));
}