StackLinkedList extends DynamicLinkedList<T> implements IQueue<T> { @Override public void push(T t){ super.add(t); }  @Override void push(T t); @Override T pop();  }
@Test public void whenAddStackThatWeCanGetItbyIndex() throws Exception { StackLinkedList<Integer> dlink = new StackLinkedList<>(); dlink.push(4); dlink.push(12); dlink.push(-7); int control = dlink.get(2); Assert.assertThat(control,is(-7)); }