@Test(groups = "java6")
public void patternAttributeRead() throws Exception {

    JmxReadRequest req =
            new JmxRequestBuilder(READ,"test:type=*")
                    .build();
    store.configure(new HistoryKey("test:type=read","attr1",null,null), new HistoryLimit(3, 0L));
    store.configure(new HistoryKey("test:type=write","attr2",null,null), new HistoryLimit(5, 0L));
    /** 5 fresh updates yield 2 history entries returned (and 3 stored) */
    Map mBeanMap = new HashMap();
    Map attr1Map = new HashMap();
    mBeanMap.put("test:type=read",attr1Map);
    attr1Map.put("attr1","val1");
    Map attr2Map = new HashMap();
    mBeanMap.put("test:type=write",attr2Map);
    attr2Map.put("attr2","val2");
    JSONObject history = updateNTimesAsMap(req,4,mBeanMap);
    assertEquals("History has 2 entries",2,history.size());
    assertEquals("bean1 has 1 entry",1,((Map) history.get("test:type=read")).size());
    assertEquals("bean1 has 1 entry",1,((Map) history.get("test:type=write")).size());
    assertEquals("attr1 has 3 history entries",3,((List) ((Map) history.get("test:type=read")).get("attr1")).size());
    assertEquals("attr2 has 3 history entries",3,((List) ((Map) history.get("test:type=write")).get("attr2")).size());
}