*/
@Test(groups = { TestUtils.UNIT })
public void TestFeature2DistributionAssociations() {
initializeRepositoryAdmin();
FeatureObject f1 = createBasicFeatureObject("feature1");
DistributionObject d1 = createBasicDistributionObject("distribution1");
Feature2DistributionAssociation f2d1 = m_feature2DistributionRepository.create(f1, d1);
assert (f2d1.getLeft().size() == 1) && f2d1.getLeft().contains(f1) : "Left side of the association should be our feature.";
assert (f2d1.getRight().size() == 1) && f2d1.getRight().contains(d1) : "Right side of the association should be our distribution.";
assert f1.getArtifacts().size() == 0 : "Feature 1 should not be associated with any artifacts; it is associated with " + f1.getArtifacts().size() + ".";
assert f1.getDistributions().size() == 1 : "Feature 1 should be associated with exactly one distribution; it is associated with " + f1.getDistributions().size() + ".";
assert d1.getFeatures().size() == 1 : "Distribution 1 should be associated with exactly one feature; it is associated with " + d1.getFeatures().size() + ".";
assert d1.getTargets().size() == 0 : "Distribution 1 should not be associated with any targets; it is associated with " + d1.getTargets().size() + ".";
}