EntitySet entitySetBar = new EntitySet().setName("bar");
entitySets.add(entitySetBar);
when(edmProvider.getEntitySet(containerName, "bar")).thenReturn(entitySetBar);
AssociationSet associationSet = new AssociationSet().setName("4711");
FullQualifiedName assocFQName = new FullQualifiedName("AssocNs", "AssocName");
associationSets.add(associationSet);
when(edmProvider.getAssociationSet(containerName, assocFQName, "foo", "fromRole")).thenReturn(associationSet);
AssociationSet parentAssociationSet = new AssociationSet().setName("42");
FullQualifiedName parentAssocFQName = new FullQualifiedName("AssocNs", "AssocNameParent");
when(edmProvider.getAssociationSet(containerParentName,
parentAssocFQName, "fooFromParent", "fromParentRole")).thenReturn(parentAssociationSet);
parentEntityContainer.setAssociationSets(Arrays.asList(parentAssociationSet));
FunctionImport functionImportFoo = new FunctionImport().setName("foo");