### Question:
FailedNode extends MainNode<K, V> { @Override int trySize() { throw new UnsupportedOperationException(); } FailedNode(final MainNode<K, V> prev); @Override String toString();  }### Answer:
@Test public void testTrySize() { assertThrows(UnsupportedOperationException.class, () -> failed.trySize()); }