@Test
public void noLinks()
{

    Mockito.when( schemaService.getDynamicSchema( Mockito.eq( OrganisationUnit.class ) ) ).thenAnswer( invocation -> {
        Schema schema = new Schema( OrganisationUnit.class, "organisationUnit", "organisationUnits" );
        schema.setApiEndpoint( "/organizationUnits" );
        return schema;
    } );
    request.setRequestURI( "/organizationUnits" );
    Mockito.when( contextService.getRequest() ).thenReturn( request );
    final Pager pager = new Pager();
    service.generatePagerLinks( pager, OrganisationUnit.class );
    Assert.assertNull( pager.getPrevPage() );
    Assert.assertNull( pager.getNextPage() );
}