@Override
    public Object[] toArray() {
        throw new UnsupportedOperationException();
    }
@Test(expected = UnsupportedOperationException.class)
    public void testToArray() {
        queue.toArray();
    }