Buggy code:
assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_3.html" , true ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:next" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_4.html" , true ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:next" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_5.html" , true ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; assertFalse ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:next" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:navigation:2:pageLink" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_6.html" , true ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:next" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_7.html" , true ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:prev" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:next" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; link = ( ( Link ) ( page . get ( "navigator:last" ) ) ) ; assertTrue ( link . isEnabled ( ) ) ; <START_BUG> List modelData = ( ( List ) ( page . get ( "table" ) . getModelObject ( ) ) ) ; <END_BUG> modelData . add ( "add-1" ) ; modelData . add ( "add-2" ) ; modelData . add ( "add-3" ) ; link = ( ( Link ) ( page . get ( "navigator:first" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; DiffUtil . validatePage ( document , this . getClass ( ) , "PagedTableNavigatorExpectedResult_8.html" , true ) ; application . destroy ( ) ; } }

Fix:
List modelData = ( ( List ) ( page . get ( "table" ) . getDefaultModelObject ( ) ) ) ;