@Test
public void testOffsetForComponentNameAndValidParent() throws Exception {

	// Expected: "c1"
	Couple couple = prepare( "app3", "initial.instances", 700 );
	couple.text += "instance of c2 {\n\tinstance of  ";
	List<RoboconfCompletionProposal> proposals = couple.proposer.findProposals( couple.text );
	Assert.assertEquals( 1, proposals.size());
	Assert.assertEquals( "c1", proposals.get( 0 ).getProposalName());
	Assert.assertEquals( "c1", proposals.get( 0 ).getProposalString());
	Assert.assertEquals( "A comment about c1", proposals.get( 0 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 0 ).getReplacementOffset());
}