Buggy code:
public class PagedTableNavigatorWithLabelProviderTest extends TestCase { public PagedTableNavigatorWithLabelProviderTest ( ) { } public PagedTableNavigatorWithLabelProviderTest ( String name ) { } public void testPagedTable ( ) throws Exception { MockWebApplication application = new MockWebApplication ( null ) ; <START_BUG> application . getPages ( ) . setHomePage ( PagedTableNavigatorWithLabelProviderPage . class ) ; <END_BUG> application . setupRequestAndResponse ( ) ; application . processRequestCycle ( ) ; PagedTableNavigatorWithLabelProviderPage page = ( ( PagedTableNavigatorWithLabelProviderPage ) ( application . getLastRenderedPage ( ) ) ) ; String document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_1.html" ) ) ; Link 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:next" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_2.html" ) ) ; 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 ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_3.html" ) ) ; 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 ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_4.html" ) ) ; 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 ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_5.html" ) ) ; 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:3:pageLink" ) ) ) ; application . setupRequestAndResponse ( ) ; application . getServletRequest ( ) . setRequestToComponent ( link ) ; application . processRequestCycle ( ) ; document = application . getServletResponse ( ) . getDocument ( ) ; assertTrue ( validatePage ( document , "PagedTableNavigatorWithLabelProviderExpectedResult_6.html" ) ) ; 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" ) ) ) ;

Fix:
application . getRequiredPageSettings ( ) . setHomePage ( PagedTableNavigatorWithLabelProviderPage . class ) ;