@Test
public void testFindPrefixesForExportedVariables_withComponentVariables() {

	Component component = new Component( "comp" );
	component.addExportedVariable( new ExportedVariable( "comp.ip", "" ));
	component.addExportedVariable( new ExportedVariable( "comp.split.property", "" ));
	component.addExportedVariable( new ExportedVariable( "comp.port", "8000" ));
	Instance instance = new Instance( "inst" ).component( component );
	Set<String> prefixes = VariableHelpers.findPrefixesForExportedVariables( instance );
	Assert.assertEquals( 1, prefixes.size());
	Assert.assertTrue( prefixes.contains( "comp" ));
	Facet facet = new Facet( "facet" );
	facet.addExportedVariable( new ExportedVariable( "something", "value" ));
	component.associateFacet( facet );
	prefixes = VariableHelpers.findPrefixesForExportedVariables( instance );
	Assert.assertEquals( 2, prefixes.size());
	Assert.assertTrue( prefixes.contains( "comp" ));
	Assert.assertTrue( prefixes.contains( "facet" ));
}