* Tests ElementListUtils.removeLegalBreaksFromEnd().
* @throws Exception if the test fails
*/
public void testRemoveElementFromEndPenalty1() throws Exception {
LinkedList lst = new LinkedList();
lst.add(new KnuthBox(4000, null, false));
lst.add(new KnuthPenalty(0, 0, false, null, false));
lst.add(new KnuthBox(4000, null, false));
lst.add(new KnuthPenalty(0, 200, false, null, false));
lst.add(new KnuthBox(4000, null, false));
lst.add(new KnuthPenalty(0, 0, false, null, false));
lst.add(new KnuthBox(4000, null, false));
lst.add(new KnuthPenalty(0, KnuthElement.INFINITE, false, null, false));
lst.add(new KnuthGlue(0, Integer.MAX_VALUE, 0, null, false));
lst.add(new KnuthPenalty(0, -KnuthElement.INFINITE, false, null, false));
boolean res = ElementListUtils.removeLegalBreaksFromEnd(lst, 9000);