Parameters implements Cloneable, Serializable { public Map<Object, List<Object>> getRaw(final Object... exceptKeys) { if (parameters.isEmpty()) return Collections.emptyMap(); final List<Object> exceptions = Arrays.asList(exceptKeys); final Map<Object, List<Object>> raw = new HashMap<>(); for (Map.Entry<Object, List<Object>> entry : parameters.entrySet()) { if (!exceptions.contains(entry.getKey())) raw.put(entry.getKey(), entry.getValue()); } return Collections.unmodifiableMap(raw); }  boolean contains(final Object key); boolean contains(final Object key, final Object value); void rename(final Object oldKey, final Object newKey); List<E> get(final Traverser.Admin<S> traverser, final Object key, final Supplier<E> defaultValue); List<E> get(final Object key, final Supplier<E> defaultValue); Object remove(final Object key); Object[] getKeyValues(final Traverser.Admin<S> traverser, final Object... exceptKeys); Map<Object, List<Object>> getRaw(final Object... exceptKeys); void set(final TraversalParent parent, final Object... keyValues); List<Traversal.Admin<S, E>> getTraversals(); Set<String> getReferencedLabels(); Parameters clone(); int hashCode(); String toString(); static final Parameters EMPTY; }
@Test public void shouldGetRawEmptyAndUnmodifiable() { final Parameters parameters = new Parameters(); final Map<Object,List<Object>> params = parameters.getRaw(); assertEquals(Collections.emptyMap(), params); }