EasyMock.expect(navigationPropertySegment.getTargetEntitySet()).andStubReturn(getTargetEntitySetForExpand());
EasyMock.replay(navigationPropertySegment);
navigationPropertyList.add(navigationPropertySegment);
expandList.add(navigationPropertyList);
// Mocking EntityUriInfo
GetEntitySetUriInfo entitySetUriInfo = EasyMock.createMock(GetEntitySetUriInfo.class);
EasyMock.expect(entitySetUriInfo.getSelect()).andStubReturn(selectItemList);
EasyMock.expect(entitySetUriInfo.getExpand()).andStubReturn(expandList);
EasyMock.expect(entitySetUriInfo.getInlineCount()).andStubReturn(InlineCount.ALLPAGES);
EasyMock.expect(entitySetUriInfo.getSkip()).andStubReturn(new Integer(1));
EasyMock.expect(entitySetUriInfo.getTop()).andStubReturn(new Integer(2));
EasyMock.replay(entitySetUriInfo);
return entitySetUriInfo;
}