Util { public static <K, V> Entry<K, V> entry(K k, V v) { return new SimpleImmutableEntry<>(k, v); } private  Util(); static Entry<K, V> entry(K k, V v); static PredicateEx<EventJournalMapEvent<K, V>> mapPutEvents(); static PredicateEx<EventJournalCacheEvent<K, V>> cachePutEvents(); static FunctionEx<EventJournalMapEvent<K, V>, Entry<K, V>> mapEventToEntry(); static FunctionEx<EventJournalMapEvent<K, V>, V> mapEventNewValue(); static FunctionEx<EventJournalCacheEvent<K, V>, Entry<K, V>> cacheEventToEntry(); static FunctionEx<EventJournalCacheEvent<K, V>, V> cacheEventNewValue(); @SuppressWarnings("checkstyle:magicnumber") static String idToString(long id); @SuppressWarnings("checkstyle:magicnumber") static long idFromString(String str); static Path getFilePathOfClasspathResource(String resourcePath);  }
@Test public void when_entry() { Entry<String, Integer> e = entry("key", 1); assertEquals("key", e.getKey()); assertEquals(Integer.valueOf(1), e.getValue()); }