@Test
public void testAddPaginationToNodeWithSuccess()
{

    // Given
    final RootNode anyRootNode = new RootNode( "any" );
    final WebOptions anyWebOptions = mockWebOptions( 10, 1 );
    final String anyUid = "LFsZ8v5v7rq";
    final int anyTotals = 12;
    // When
    dimensionItemPageHandler.addPaginationToNodeIfEnabled( anyRootNode, anyWebOptions,
        anyUid, anyTotals );
    // Then
    assertThat( anyRootNode, is( notNullValue() ) );
    assertThat( anyRootNode.getName(), is( equalTo( "any" ) ) );
    assertThat( anyRootNode.getChildren(), hasSize( 1 ) );
    assertThat( anyRootNode.getChildren().get( 0 ).isComplex(), is( true ) );
    verify( linkService, times( 1 ) ).generatePagerLinks( any( Pager.class ), anyString() );
}