Collections { public static <K, V> SortedMap<K, V> singletonSortedMap(K key, V value) { return new SingletonSortedMap<>(key, value); } private  Collections(); @SuppressWarnings("unchecked") static SortedSet<E> emptySortedSet(); @SuppressWarnings("unchecked") static SortedMap<K, V> emptySortedMap(); static SortedSet<E> singletonSortedSet(E element); static SortedMap<K, V> singletonSortedMap(K key, V value); static final SortedSet<?> EMPTY_SORTED_SET; static final SortedMap<?, ?> EMPTY_SORTED_MAP; }
@Test public void singletonSortedMap() { SortedMap<Integer, String> map = new TreeMap<>(); map.put(1, ""); verify(Collections.<Integer, String>singletonSortedMap(1, ""), map, 0, 1, ""); }