@Test
public void testOffsetForComponentCommentsWithoutPrefix() throws Exception {

	// Expected: c1, c2
	Couple couple = prepare( "app3", "edited3.graph", 200 );
	couple.text += "\ncomp {\n\tchildren: ";
	List<RoboconfCompletionProposal> proposals = couple.proposer.findProposals( couple.text );
	Assert.assertEquals( 4, 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());
	Assert.assertEquals( "c2", proposals.get( 1 ).getProposalName());
	Assert.assertEquals( "c2", proposals.get( 1 ).getProposalString());
	Assert.assertNull( proposals.get( 1 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 1 ).getReplacementOffset());
	Assert.assertEquals( "f1", proposals.get( 2 ).getProposalName());
	Assert.assertEquals( "f1", proposals.get( 2 ).getProposalString());
	Assert.assertEquals( "This is facet f1.\nAnd the desc spans over two lines.", proposals.get( 2 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 2 ).getReplacementOffset());
	Assert.assertEquals( "f2", proposals.get( 3 ).getProposalName());
	Assert.assertEquals( "f2", proposals.get( 3 ).getProposalString());
	Assert.assertEquals( "Simple comment.", proposals.get( 3 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 3 ).getReplacementOffset());
}