@Test
public void getPageInfoWithInvalidInput() throws PageInfoParseException
{
PageInfoParser pip = mock(PageInfoParser.class);
when(pip.parse(FooPagingResource.FOO)).thenThrow(
new PageInfoParseException("Expected exception from junit test method"));
AbstractPagingResource underTest = new FooPagingResource(pip);
PageInfo pageInfo = underTest.getPageInfo();
assertNull(pageInfo);
}