Your code does not produce any errors when I run it. However, you may be misinterpreting java's way of handling string representations of arrays as an error.
When you call System.out.println("key ==== " + map.get("test"));
it does indeed correctly print the array. However, by default java expresses arrays oddly, especially arrays of arrays (or 2d arrays). You may want to change this to:
//at top of file
import java.util.Arrays;
//deepToString returns a string that expresses nested arrays in a user-friendly format
System.out.println("key ==== " + Arrays.deepToString(map.get("test")));
Which correctly prints
Test:true
key ==== [[1, 2]]