Is there some way of initializing a Java HashMap like this?:
Map test = new HashMap{\"test\":\"test\",\"test\
If you need to place only one key-value pair, you can use Collections.singletonMap(key, value);