@Test
public void testOffsetInsideInstancesWithComponentPropertiesAndWithoutInheritance() throws Exception {

	// Expected:  "c2.ip", "channels:", "name:", instance of, instance of block
	Couple couple = prepare( "app3", "initial.instances", 61 );
	List<RoboconfCompletionProposal> proposals = couple.proposer.findProposals( couple.text );
	Assert.assertEquals( 5, proposals.size());
	Assert.assertEquals( "c2.ip: ", proposals.get( 0 ).getProposalName());
	Assert.assertEquals( "c2.ip: ", proposals.get( 0 ).getProposalString());
	Assert.assertEquals( CompletionUtils.SET_BY_ROBOCONF, proposals.get( 0 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 0 ).getReplacementOffset());
	Assert.assertEquals( PROPERTY_INSTANCE_CHANNELS + ": ", proposals.get( 1 ).getProposalName());
	Assert.assertEquals( PROPERTY_INSTANCE_CHANNELS + ": ", proposals.get( 1 ).getProposalString());
	Assert.assertNull( proposals.get( 1 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 1 ).getReplacementOffset());
	Assert.assertEquals( PROPERTY_INSTANCE_NAME + ": ", proposals.get( 2 ).getProposalName());
	Assert.assertEquals( PROPERTY_INSTANCE_NAME + ": ", proposals.get( 2 ).getProposalString());
	Assert.assertNull( proposals.get( 2 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 2 ).getReplacementOffset());
	Assert.assertEquals( KEYWORD_INSTANCE_OF, proposals.get( 3 ).getProposalName());
	Assert.assertEquals( INSTANCE_OF_PREFIX, proposals.get( 3 ).getProposalString());
	Assert.assertNull( proposals.get( 3 ).getProposalDescription());
	Assert.assertEquals( 0, proposals.get( 3 ).getReplacementOffset());
	Assert.assertEquals( INSTANCE_OF_BLOCK, proposals.get( 4 ).getProposalName());
	Assert.assertTrue( proposals.get( 4 ).getProposalString().startsWith( INSTANCE_OF_PREFIX ));
	Assert.assertTrue( proposals.get( 4 ).getProposalDescription().startsWith( INSTANCE_OF_BLOCK ));
	Assert.assertEquals( 0, proposals.get( 4 ).getReplacementOffset());
}