### Question:
LNodeEntries extends LNodeEntry<K, V> { final LNodeEntries<K, V> replace(final LNodeEntry<K, V> entry, final V value) { final LNodeEntries<K, V> removed; return (removed = remove(entry)) == null ? new Single<>(entry.getKey(), value) : new Multiple<>(entry.getKey(), value, removed); } LNodeEntries(final K key, final V value);   }### Answer:
@Test public void testReplaceInvalid() { final LNodeEntry<Integer, Boolean> lnode = new LNodeEntries.Single<>(1, TRUE); assertThrows(VerifyException.class, () -> map.replace(lnode, FALSE)); }