@Test
public void testAssociateFacet() {

	Component component = new Component( "comp" );
	Facet facet = new Facet( "facet" );
	Assert.assertEquals( 0, component.getFacets().size());
	Assert.assertEquals( 0, facet.getAssociatedComponents().size());
	component.associateFacet( facet );
	Assert.assertEquals( 1, component.getFacets().size());
	Assert.assertEquals( 1, facet.getAssociatedComponents().size());
	Assert.assertEquals( facet, component.getFacets().iterator().next());
	Assert.assertEquals( component, facet.getAssociatedComponents().iterator().next());
}