@Test
public void map() throws Exception {

    Map map = new HashMap<String,Integer>();
    map.put("answer",42);
    JmxWriteRequest req = new JmxRequestBuilder(WRITE,oName).attribute("Map").value(map).build();
    handler.doHandleRequest(getMBeanServer(),req);
    req = new JmxRequestBuilder(WRITE,oName).attribute("Map").value(null).build();
    Map ret = (Map) handler.doHandleRequest(getMBeanServer(),req);
    assertTrue(ret instanceof Map);
    assertEquals(((Map) ret).get("answer"),42);
}