assertEquals("R1", joinClauses.get(1).getEntityRelationShipAlias());
}
private EdmNavigationProperty createNavigationProperty(final String z) throws EdmException {
EdmNavigationProperty navigationProperty = EasyMock.createMock(EdmNavigationProperty.class);
EdmAssociation association = EasyMock.createMock(EdmAssociation.class);
EdmAssociationEnd associationEnd = EasyMock.createMock(EdmAssociationEnd.class);
EasyMock.expect(navigationProperty.getFromRole()).andStubReturn("roleA" + z);
EasyMock.expect(navigationProperty.getToRole()).andStubReturn("roleB" + z);
EasyMock.expect(navigationProperty.getName()).andStubReturn("navP" + z);
EasyMock.expect(navigationProperty.getName()).andStubReturn("navP" + z);
EasyMock.expect(navigationProperty.getMultiplicity()).andStubReturn(EdmMultiplicity.ONE);
EdmEntityType edmEntityType = EasyMock.createMock(EdmEntityType.class);
EdmMapping edmMapping = EasyMock.createMock(EdmMapping.class);
EasyMock.expect(edmMapping.getInternalName()).andStubReturn("sItem" + z);
EasyMock.expect(edmEntityType.getMapping()).andStubReturn(edmMapping);
EasyMock.expect(edmEntityType.getName()).andStubReturn("soItem" + z);
EasyMock.expect(associationEnd.getEntityType()).andStubReturn(edmEntityType);
EasyMock.expect(association.getEnd("roleA" + z)).andStubReturn(associationEnd);
EasyMock.expect(navigationProperty.getRelationship()).andStubReturn(association);
EdmMapping edmMapping1 = EasyMock.createMock(EdmMapping.class);
EasyMock.expect(edmMapping1.getInternalName()).andStubReturn("s_Item" + z);
EasyMock.expect(navigationProperty.getMapping()).andStubReturn(edmMapping1);
EasyMock.replay(edmMapping, edmMapping1, edmEntityType, associationEnd, association, navigationProperty);