@Test
public void testOffsetForVariablesImportsSkipNonExporting_BrokenGraph_1() throws Exception {

	// Expected: all the exported variables.
	// We should not set "comp1.*" (no export).
	Couple couple = prepare( "app5", "edited5.graph", 394 );
	Map<String,String> expected = new TreeMap<> ();
	expected.put( "c1.*", CompletionUtils.IMPORT_ALL_THE_VARIABLES );
	expected.put( "c1.v1", CompletionUtils.DEFAULT_VALUE + "version1" );
	expected.put( "c1.v2", CompletionUtils.DEFAULT_VALUE + "version2" );
	expected.put( "c1.ip", CompletionUtils.SET_BY_ROBOCONF );
	expected.put( "c1.port", CompletionUtils.DEFAULT_VALUE + "8100" );
	expected.put( "c2.*", CompletionUtils.IMPORT_ALL_THE_VARIABLES );
	expected.put( "c2.ip", CompletionUtils.SET_BY_ROBOCONF );
	expected.put( "f1.*", CompletionUtils.IMPORT_ALL_THE_VARIABLES );
	expected.put( "f1.v1", CompletionUtils.DEFAULT_VALUE + "version1" );
	expected.put( "f1.v2", CompletionUtils.DEFAULT_VALUE + "version2" );
	List<RoboconfCompletionProposal> proposals = couple.proposer.findProposals( couple.text );
	Assert.assertEquals( expected.size(), proposals.size());
	int index = 0;
	for( Map.Entry<String,String> entry : expected.entrySet()) {
		Assert.assertEquals( entry.getKey(), proposals.get( index ).getProposalName());
		Assert.assertEquals( entry.getKey(), proposals.get( index ).getProposalString());
		Assert.assertEquals( entry.getValue(), proposals.get( index ).getProposalDescription());
		Assert.assertEquals( 0, proposals.get( index ).getReplacementOffset());
		index ++;
	}
}