VelocityScopeMap extends ScopeMap { public boolean isEmpty() { return size() < 1; } VelocityScopeMap(Context request); @Override Object remove(Object key); @Override Object put(String key, Object value); boolean containsKey(Object key); boolean isEmpty(); Set<String> keySet(); int size();  }
@Test public void testIsEmpty() { expect(request.getKeys()).andReturn(new Object[0]); replay(request); assertTrue(map.isEmpty()); verify(request); }
@Test public void testIsEmptyFalse() { expect(request.getKeys()).andReturn(new Object[] {"one", "two"}); replay(request); assertFalse(map.isEmpty()); verify(request); }