ToString { public static String createToString(final Object object, final Map<String, Object> parameters, final String superToString) { return createToString(object, parameters) + (null == superToString ? "" : " extends " + superToString); } 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 testToStringParamsMapSimpleEntries1() { final String string = createToString(this, Collections.singletonMap( KEY1, VALUE1 )); System.out.println(string); assertThat(string).isEqualTo("ToStringTest {" + "\n one: 1" + "\n}"); }
@Test public void testToStringParamsMapNull() { final String ts = createToString(this, null); assertThat(ts).isEqualTo("ToStringTest"); }
@Test public void testToStringParamsMapEmpty() { final String ts = createToString(this, Collections.emptyMap()); assertThat(ts).isEqualTo("ToStringTest"); }