@Test
	public void testEmptyPage() {
		PageRequest pageable = new PageRequest(0, 5);
		Page<String> page = pagingUtility.getPagedData(pageable, Collections.<String> emptyList());
		Assert.isTrue(page.getSize() == 0, "Page size for the empty list should be zero.");
	}
Verify if the empty page is returned.
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/util/PagingUtilityTests.java