Repo persistedRepo = repoPageList.get(0);
Set<RepoRepoRelationship> relationships = persistedRepo.getRepoRepoRelationships();
assert relationships.size() == 1;
RepoRepoRelationship relationship = relationships.iterator().next();
assert relationship.getRepoRepoRelationshipPK().getRepo().getName().equals("repo1");
assert relationship.getRepoRepoRelationshipPK().getRepoRelationship().getRelatedRepo().getName()
.equals("repo2");
assert relationship.getRepoRepoRelationshipPK().getRepoRelationship().getRepoRelationshipType()
.getName().equals(relationshipTypeName);
}
});
}