@Test
public void testExportedVariableNames() throws Exception {

	Component component = new Component( "my-component" ).installerName( Constants.TARGET_INSTALLER );
	Assert.assertEquals( 0, RuntimeModelValidator.validate( component ).size());
	component.addExportedVariable( new ExportedVariable( "ip", null ));
	Iterator<ModelError> iterator = RuntimeModelValidator.validate( component ).iterator();
	//Assert.assertEquals( ErrorCode.RM_INVALID_EXPORT_PREFIX, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
	component.exportedVariables.clear();
	component.addExportedVariable( new ExportedVariable( "my-component.ip", null ));
	Assert.assertEquals( 0, RuntimeModelValidator.validate( component ).size());
	component.addExportedVariable( new ExportedVariable( "ip", null ));
	iterator = RuntimeModelValidator.validate( component ).iterator();
	//Assert.assertEquals( ErrorCode.RM_INVALID_EXPORT_PREFIX, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
	component.exportedVariables.clear();
	component.addExportedVariable( new ExportedVariable( "my-component.ip", null ));
	component.addExportedVariable( new ExportedVariable( "another-prefix.ip", null ));
	iterator = RuntimeModelValidator.validate( component ).iterator();
	Assert.assertFalse( iterator.hasNext());
	component.associateFacet( new Facet( "my-facet" ));
	Assert.assertEquals( 0, RuntimeModelValidator.validate( component ).size());
	component.exportedVariables.clear();
	component.addExportedVariable( new ExportedVariable( "my-component.@", "yo" ));
	iterator = RuntimeModelValidator.validate( component ).iterator();
	Assert.assertEquals( ErrorCode.RM_INVALID_VARIABLE_NAME, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
	component.exportedVariables.clear();
	component.addExportedVariable( new ExportedVariable( "my-component.inva!id", null ));
	iterator = RuntimeModelValidator.validate( component ).iterator();
	Assert.assertEquals( ErrorCode.RM_INVALID_VARIABLE_NAME, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
	component.exportedVariables.clear();
	component.addExportedVariable( new ExportedVariable( "", null ));
	iterator = RuntimeModelValidator.validate( component ).iterator();
	Assert.assertEquals( ErrorCode.RM_EMPTY_VARIABLE_NAME, iterator.next().getErrorCode());
	Assert.assertFalse( iterator.hasNext());
}