<human>: Convert the following Java 8 Map creation to Java 17 using Map.of() factory method:

```java
// Java 8 code
Map<String, Integer> map = new HashMap<>();
map.put("A", 1);
map.put("B", 2);
```

<bot>: ```java
// Java 17 Map.of() factory method
Map<String, Integer> map = Map.of("A", 1, "B", 2);
```