VariablesSupport implements Variables, EventAware { @Override public Iterable<String> names() { return map.keySet(); } VariablesSupport(final Map<String, Object> map);  VariablesSupport(); @Inject void setEventManager(final EventManager eventManager); @Override void set(final String name, @Nullable final Object value); @Override void set(final String name, @Nullable final Object value, boolean mutable); @Override void set(final Class<?> type, @Nullable final Object value); @Override @Nullable Object get(final String name); @Override @Nullable @SuppressWarnings({"unchecked"}) T get(final String name, final Class<T> type); @Override @Nullable T get(final String name, final Class<T> type, @Nullable final T defaultValue); @Override @Nullable T get(final Class<T> type, @Nullable final T defaultValue); @Override @Nullable T get(final Class<T> type); @Override @Nullable Object get(final String name, @Nullable final Object defaultValue); @Override Object require(final String name); @Override Object require(final String name, final Object defaultValue); @Override T require(final String name, final Class<T> type, final T defaultValue); @Override T require(final String name, final Class<T> type); @Override T require(final Class<T> type, final T defaultValue); @Override T require(final Class<T> type); @Override void unset(final String name); @Override void unset(final Class<?> type); @Override boolean contains(final String name); @Override boolean contains(final Class<?> type); @Override Iterable<String> names(); @Override Map<String,Object> asMap();  }
@Test public void testNames() throws Exception { Iterator<String> iter = underTest.names().iterator(); assertNotNull(iter); assertFalse(iter.hasNext()); }