@Test
public void testOffsetForGraphImportAvoidNastyDuplicates() throws Exception {

	// Expected: 2 files to import
	Couple couple = prepare( "app3", "edited3.graph", 700 );
	couple.text += "\nimport imports/subimports/imp2.graph  ;   \n\nimport imp";
	List<RoboconfCompletionProposal> proposals = couple.proposer.findProposals( couple.text );
	Assert.assertEquals( 2, proposals.size());
	String[] expected = {
			"imports/imp1.graph",
			"imports/subimports/imp3.graph"
	};
	for( int i=0; i<expected.length; i++ ) {
		Assert.assertEquals( expected[ i ], proposals.get( i ).getProposalName());
		Assert.assertEquals( expected[ i ], proposals.get( i ).getProposalString());
		Assert.assertNull( proposals.get( i ).getProposalDescription());
		Assert.assertEquals( 0, proposals.get( i ).getReplacementOffset());
	}
}