CollectionTool extends org.apache.velocity.tools.generic.CollectionTool { public <E> BlockingQueue<E> getBlockingQueue() { return new LinkedBlockingQueue<>(); }  List<E> getArrayList(); List<E> getLinkedList(); Map<K, V> getMap(); SortedMap<K, V> getSortedMap(); Map<K, V> getOrderedMap(); Set<E> getSet(); SortedSet<E> getSortedSet(); Set<E> getOrderedSet(); Queue<E> getQueue(); BlockingQueue<E> getBlockingQueue(); Queue<E> getPriorityQueue(); List<E> unmodifiable(List<E> input); Map<K, V> unmodifiable(Map<K, V> input); Set<E> unmodifiable(Set<E> input); Collection<E> unmodifiable(Collection<E> input); Collection<E> union(Collection<E> a, Collection<E> b); Collection<E> intersection(Collection<E> a, Collection<E> b); Collection<E> disjunction(Collection<E> a, Collection<E> b); boolean reverseModifiable(List<E> input); boolean sortModifiable(List<E> input);  }
@Test void getBlockingQueue() { BlockingQueue<String> result = this.tool.getBlockingQueue(); assertNotNull(result, "Returned null instead of a queue"); assertTrue(result.isEmpty(), "Returned queue wasn't initially empty"); }