### Question:
BeanMap extends AbstractMap<String, Object> implements Cloneable { public void setBean(Object newBean) { bean = newBean; reinitialise(); } BeanMap();  BeanMap(Object bean); @Override String toString(); @Override Object clone(); void putAllWriteable(BeanMap map); @Override void clear(); boolean containsKey(String name); Object get(String name); @Override Object put(String name, Object value); @Override int size(); @Override Set<String> keySet(); @Override Set<Entry<String, Object>> entrySet(); @Override Collection<Object> values(); Class<?> getType(String name); Iterator<String> keyIterator(); Iterator<Object> valueIterator(); Iterator<Entry<String, Object>> entryIterator(); Object getBean(); void setBean(Object newBean); Method getReadMethod(String name); Method getWriteMethod(String name);  }### Answer:
@Test public void setBean() { Entity entity = new Entity(); beanMap.setBean(entity); assertTrue(entity == beanMap.getBean()); }