public void testCopyMap(){
  Serializer serializer=new Serializer();
  Map<String,String> map=new HashMap<>();
  map.put("foo","Hello world!");
  map.put("bar","Hello world again!");
  Map<String,String> result=serializer.copy(map);
  assertEquals(map,result);
  assertEquals(map.get("foo"),"Hello world!");
  assertEquals(map.get("bar"),"Hello world again!");
}

public void testCopyMap ( ) { Serializer serializer = new Serializer ( ) ; Map < String , String > map = new HashMap < > ( ) ; map . put ( "foo" , "Hello world!" ) ; map . put ( "bar" , "Hello world again!" ) ; Map < String , String > result = serializer . copy ( map ) ; assertEquals ( map , result ) ; assertEquals ( map . get ( "foo" ) , "Hello world!" ) ; assertEquals ( map . get ( "bar" ) , "Hello world again!" ) ; }
tests copying a map .
