@Test
public void testDuplicateInstance_singleInstance() {

	Instance original = new Instance( "inst" ).channel( "chan" ).component( new Component( "comp" ));
	original.overriddenExports.put( "test", "test" );
	original.overriddenExports.put( "A.port", "8012" );
	original.data.put( "some", "data" );
	original.getImports().put( "facet-name", new ArrayList<Import> ());
	original.setStatus( InstanceStatus.DEPLOYED_STARTED );
	Instance copy = InstanceHelpers.replicateInstance( original );
	Assert.assertEquals( original.getName(), copy.getName());
	Assert.assertEquals( original.channels, copy.channels );
	Assert.assertEquals( original.overriddenExports.size(), copy.overriddenExports.size());
	Assert.assertEquals( "test", copy.overriddenExports.get( "test" ));
	Assert.assertEquals( "8012", copy.overriddenExports.get( "A.port" ));
	Assert.assertEquals( 0, copy.getImports().size());
	Assert.assertEquals( original.getComponent(), copy.getComponent());
	Assert.assertEquals( InstanceStatus.NOT_DEPLOYED, copy.getStatus());
}