### Question:
MetaInjectMigration { public static void migrateFrom70( Map<TargetTransformAttribute, SourceTransformField> targetSourceMapping ) { for ( TargetTransformAttribute target : new ArrayList<>( targetSourceMapping.keySet() ) ) { if ( "SCHENAMENAMEFIELD".equals( target.getAttributeKey() ) ) { SourceTransformField so = targetSourceMapping.remove( target ); TargetTransformAttribute target2 = new TargetTransformAttribute( target.getTransformName(), "SCHEMANAMEFIELD", target.isDetail() ); targetSourceMapping.put( target2, so ); } } }  static void migrateFrom70( Map<TargetTransformAttribute, SourceTransformField> targetSourceMapping );  }### Answer:
@Test public void test70() { Map<TargetTransformAttribute, SourceTransformField> targetSourceMapping = new HashMap<>(); TargetTransformAttribute target = new TargetTransformAttribute( "transform", "SCHENAMENAMEFIELD", true ); SourceTransformField source = new SourceTransformField( "transform", "field" ); targetSourceMapping.put( target, source ); MetaInjectMigration.migrateFrom70( targetSourceMapping ); assertEquals( 1, targetSourceMapping.size() ); TargetTransformAttribute target2 = targetSourceMapping.keySet().iterator().next(); assertEquals( "SCHEMANAMEFIELD", target2.getAttributeKey() ); assertEquals( target.getTransformName(), target2.getTransformName() ); assertEquals( target.isDetail(), target2.isDetail() ); assertEquals( source, targetSourceMapping.get( target2 ) ); }