ObjectMap extends AbstractMap<String, Object> { @Override public boolean isEmpty() { return size() == 0; } ObjectMap();  ObjectMap(Object object); Object getObject(); void setObject(Object object); Converter getConverter(); void setConverter(Converter converter); @Override void clear(); @Override boolean containsKey(Object key); @Override boolean containsValue(Object value); @Override Set<Map.Entry<String, Object>> entrySet(); @Override Object get(Object key); @Override boolean isEmpty(); @Override Set<String> keySet(); @Override Object put(String key, Object value); @Override void putAll(Map<? extends String, ? extends Object> map); @Override Object remove(Object key); @Override int size(); @Override Collection<Object> values();  }
@Test public void isEmpty() { ObjectMap objmap = new ObjectMap(new Object()); assertTrue(objmap.isEmpty()); }
@Test public void isEmpty_false() { ObjectMap objmap = new ObjectMap(new Object() { String field = "value"; }); assertFalse(objmap.isEmpty()); }
@Test public void isEmpty_child() { class Parent { String field = "value"; } class Child extends Parent {} ObjectMap objmap = new ObjectMap(new Child()); assertFalse(objmap.isEmpty()); }