### Question:
ListComboBoxModel extends AbstractListModel<E> implements MutableComboBoxModel<E> { @Override public void insertElementAt(E anObject, int index) { myObjects.add(index, anObject); fireIntervalAdded(this, index, index); } ListComboBoxModel(); @SafeVarargs @SuppressWarnings({ "varargs", "PMD.ConstructorCallsOverridableMethod" })  ListComboBoxModel(E... items); @SuppressWarnings("PMD.ConstructorCallsOverridableMethod")  ListComboBoxModel(Collection<? extends E> items); private  ListComboBoxModel(List<E> items); @SuppressWarnings("unchecked") @Override @Deprecated void setSelectedItem(Object anObject); void setSelectedElement(E anObject); @Override E getSelectedItem(); @Override int getSize(); @Override E getElementAt(int index); int getIndexOf(Object anObject); @Override void addElement(E anObject); @Override void insertElementAt(E anObject, int index); @Override void removeElementAt(int index); @Override void removeElement(Object anObject); void removeAllElements();  }### Answer:
@Test public void testInsertElementAt() { List<Integer> list = Arrays.asList(Integer.valueOf(0), Integer.valueOf(1), Integer.valueOf(2)); ListComboBoxModel<Integer> model = new ListComboBoxModel<>(list); ListDataListener listener = EasyMock.createMock(ListDataListener.class); listener.intervalAdded(eqEvent(new ListDataEvent(this, ListDataEvent.INTERVAL_ADDED, 0, 0))); EasyMock.replay(listener); model.addListDataListener(listener); model.insertElementAt(Integer.valueOf(3), 0); Assert.assertEquals(Integer.valueOf(3), model.getElementAt(0)); Assert.assertEquals(Integer.valueOf(0), model.getElementAt(1)); Assert.assertEquals(Integer.valueOf(1), model.getElementAt(2)); Assert.assertEquals(Integer.valueOf(2), model.getElementAt(3)); EasyMock.verify(listener); EasyMock.reset(listener); listener.intervalAdded(eqEvent(new ListDataEvent(this, ListDataEvent.INTERVAL_ADDED, 1, 1))); EasyMock.replay(listener); model.insertElementAt(Integer.valueOf(4), 1); Assert.assertEquals(Integer.valueOf(3), model.getElementAt(0)); Assert.assertEquals(Integer.valueOf(4), model.getElementAt(1)); Assert.assertEquals(Integer.valueOf(0), model.getElementAt(2)); Assert.assertEquals(Integer.valueOf(1), model.getElementAt(3)); Assert.assertEquals(Integer.valueOf(2), model.getElementAt(4)); EasyMock.verify(listener); EasyMock.reset(listener); listener.intervalAdded(eqEvent(new ListDataEvent(this, ListDataEvent.INTERVAL_ADDED, 5, 5))); EasyMock.replay(listener); model.insertElementAt(Integer.valueOf(5), 5); Assert.assertEquals(Integer.valueOf(3), model.getElementAt(0)); Assert.assertEquals(Integer.valueOf(4), model.getElementAt(1)); Assert.assertEquals(Integer.valueOf(0), model.getElementAt(2)); Assert.assertEquals(Integer.valueOf(1), model.getElementAt(3)); Assert.assertEquals(Integer.valueOf(2), model.getElementAt(4)); Assert.assertEquals(Integer.valueOf(5), model.getElementAt(5)); EasyMock.verify(listener); }