public static <K, V> Map<K, V> mapOf(K key1, V value1) {
        Map<K, V> result = new HashMap<>();
        result.put(key1, value1);
        return result;
    }
@Test
    void testMapOf2() {
        final Map<String, String> map = mapOf(
                "key1", "value1",
                "key2", "value2"
        );

        assertThat(map)
                .containsEntry("key1", "value1")
                .containsEntry("key2", "value2");
    }