@Test
public void singleBeanMultiAttributes() throws Exception {

    JmxReadRequest request = new JmxRequestBuilder(READ, testBeanName.getCanonicalName()).
            attributes(Arrays.asList("attr0", "attr1")).
            build();
    MBeanServer server = createMock(MBeanServer.class);
    expect(server.isRegistered(testBeanName)).andStubReturn(true);
    expect(server.getAttribute(testBeanName,"attr0")).andReturn("val0");
    expect(server.getAttribute(testBeanName,"attr1")).andReturn("val1");
    replay(server);
    Map res = (Map) handler.handleRequest(getMBeanServerManager(server),request);
    verify(server);
    assertEquals("val0", res.get("attr0"));
    assertEquals("val1",res.get("attr1"));
}