} catch (EdmException e) {
fail(ODataJPATestConstants.EXCEPTION_MSG_PART_1 + e.getMessage() + ODataJPATestConstants.EXCEPTION_MSG_PART_2);
}
EasyMock.replay(navigationProperty);
// Mocking the navigation property segments and adding to expand list
NavigationPropertySegment navigationPropertySegment = EasyMock.createMock(NavigationPropertySegment.class);
EasyMock.expect(navigationPropertySegment.getNavigationProperty()).andStubReturn(navigationProperty);
EasyMock.expect(navigationPropertySegment.getTargetEntitySet()).andStubReturn(getTargetEntitySetForExpand());
EasyMock.replay(navigationPropertySegment);
navigationPropertyList.add(navigationPropertySegment);
expandList.add(navigationPropertyList);
// Mocking EntityUriInfo
GetEntitySetUriInfo entitySetUriInfo = EasyMock.createMock(GetEntitySetUriInfo.class);