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

    ObjectName patternMBean = new ObjectName("java.lang:type=*");
    JmxReadRequest request = new JmxRequestBuilder(READ, patternMBean).
            attributes(Arrays.asList("mem0","gc3")).
            build();
    ObjectName beans[] =  {
            new ObjectName("java.lang:type=Memory"),
            new ObjectName("java.lang:type=GarbageCollection")
    };
    MBeanServer server = prepareMultiAttributeTest(patternMBean, beans);
    expect(server.getAttribute(beans[0],"mem0")).andReturn("memval0");
    expect(server.getAttribute(beans[1],"gc3")).andReturn("gcval3");
    replay(server);
    Map res = (Map) handler.handleRequest(getMBeanServerManager(server), request);
    verify(server);
    assertEquals(2,res.size());
    assertEquals("memval0",((Map) res.get("java.lang:type=Memory")).get("mem0"));
    assertEquals("gcval3",((Map) res.get("java.lang:type=GarbageCollection")).get("gc3"));
}