ToString { public static <K, V> Map<K, V> map( final K key1, final V value1) { return Collections.singletonMap(key1, value1); } private  ToString(); static Map<K, V> map(
            final K key1, final V value1); static Map<K, V> map(
            final K key1, final V value1,
            final K key2, final V value2); static Map<K, V> map(
            final K key1, final V value1,
            final K key2, final V value2,
            final K key3, final V value3); static Map<K, V> map(
            final K key1, final V value1,
            final K key2, final V value2,
            final K key3, final V value3,
            final K key4, final V value4); static Map<K, V> map(
            final K key1, final V value1,
            final K key2, final V value2,
            final K key3, final V value3,
            final K key4, final V value4,
            final K key5, final V value5); @SafeVarargs @SuppressWarnings("varargs") static Map<K, V> mapOf(final Map.Entry<? extends K, ? extends V>... entries); static Map.Entry<K, V> mapEntry(final K key, final V value); static String createToString(final Object object, final Map<String, Object> parameters, final String superToString); static String createToString(final Object object, final Map<String, Object> parameters);  }
@Test public void testMapKeyValue_2args() { final Map<String, Object> result = map( KEY1, VALUE1); assertThat(result).containsExactly( MapEntry.entry(KEY1, VALUE1) ); }
@Test public void testMapKeyValue_4args() { final Map<String, Object> result = map( KEY1, VALUE1, KEY2, VALUE2); assertThat(result).containsExactly( MapEntry.entry(KEY1, VALUE1), MapEntry.entry(KEY2, VALUE2) ); }
@Test public void testMapKeyValue_6args() { final Map<String, Object> result = map( KEY1, VALUE1, KEY2, VALUE2, KEY3, VALUE3); assertThat(result).containsExactly( MapEntry.entry(KEY1, VALUE1), MapEntry.entry(KEY2, VALUE2), MapEntry.entry(KEY3, VALUE3) ); }
@Test public void testMapKeyValue_8args() { final Map<String, Object> result = map( KEY1, VALUE1, KEY2, VALUE2, KEY3, VALUE3, KEY4, VALUE4); assertThat(result).containsExactly( MapEntry.entry(KEY1, VALUE1), MapEntry.entry(KEY2, VALUE2), MapEntry.entry(KEY3, VALUE3), MapEntry.entry(KEY4, VALUE4) ); }
@Test public void testMapKeyValue_10args() { final Map<String, Object> result = map( KEY1, VALUE1, KEY2, VALUE2, KEY3, VALUE3, KEY4, VALUE4, KEY5, VALUE5); assertThat(result).containsExactly( MapEntry.entry(KEY1, VALUE1), MapEntry.entry(KEY2, VALUE2), MapEntry.entry(KEY3, VALUE3), MapEntry.entry(KEY4, VALUE4), MapEntry.entry(KEY5, VALUE5) ); }