ObjectMap extends AbstractMap<String, Object> { @Override public int size() { return definition.getAllSerializableFields().size() + extras.size(); } 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 size() { ObjectMap objmap = new ObjectMap(new ObjValues()); assertEquals(3, objmap.size()); }
@Test public void size_null() { ObjValues obj = new ObjValues(); obj.field_pub = null; ObjectMap objmap = new ObjectMap(obj); assertEquals(3, objmap.size()); }