public void testInsertComponentName() throws Exception
{
ETCLComponentName _comp = (ETCLComponentName) TCLParser.parse("$.first_name.last_name");
_comp.acceptInOrder(new TCLCleanUp());
assertEquals("$.first_name.last_name", _comp.getComponentName());
AbstractTCLNode _root = TCLParser.parse("$.first_name.value + 5");
_root.acceptInOrder(new TCLCleanUp());
_comp = (ETCLComponentName) _root.getFirstChild();
assertEquals("$.first_name.value", _comp.getComponentName());
_comp = (ETCLComponentName) TCLParser.parse("$domain_name");
_comp.acceptInOrder(new TCLCleanUp());
assertEquals("$domain_name", _comp.getComponentName());
_comp = (ETCLComponentName) TCLParser.parse("$domain_name._type_id");
_comp.acceptInOrder(new TCLCleanUp());
assertEquals("$domain_name._type_id", _comp.getComponentName());
_comp = (ETCLComponentName) TCLParser.parse("$.(1)");
_comp.acceptInOrder(new TCLCleanUp());
assertEquals("$.(1)", _comp.getComponentName());
_comp = (ETCLComponentName) TCLParser.parse("$.()");
_comp.acceptInOrder(new TCLCleanUp());
assertEquals("$.(default)", _comp.getComponentName());
}