### Question:
DoublyLinkedList { public int getSize() { return size; } DoublyLinkedList(); boolean isEmpty(); int getSize(); synchronized void insert(Monom val, boolean deleteImmediately); void display();  }### Answer:
@Test public void getSize() { DoublyLinkedList linkedList = new DoublyLinkedList(); assert (linkedList.getSize() == 0); linkedList.insert(new Monom(5, 100)); assert (linkedList.getSize() == 1); assert (linkedList.getSize() != 2); }