### Question:
JSArray extends JSNode implements Iterable { @Override public boolean isEmpty() { return objects.isEmpty(); } JSArray(Object... objects); @Override boolean isArray(); @Override Object put(String index, Object value); Object put(int index, Object value); Object set(int index, Object value); void add(int index, Object value); void add(Object value); void addAll(JSArray array); @Override Object remove(Object index); Object remove(int index); @Override Object get(Object index); Object get(int index); JSNode getNode(int index); JSArray getArray(int index); String getString(int index); int getInt(int index); double getDouble(int index); boolean getBoolean(int index); @Override Set<String> keySet(); List asList(); @Override JSArray asArray(); @Override Map asMap(); boolean contains(Object object); @Override boolean isEmpty(); @Override void clear(); @Override int size(); int length(); @Override Iterator iterator(); @Override Collection values();  }### Answer:
@Test public void testIsEmpty() { assertTrue(new JSArray().isEmpty()); assertFalse(new JSArray("a", "b").isEmpty()); JSArray a = new JSArray(); a.add("1"); assertFalse(a.isEmpty()); }