@Test
public void singleBeanNoAttributes() throws Exception {

    JmxReadRequest request = new JmxRequestBuilder(READ, testBeanName.getCanonicalName()).
            attribute(null).
            build();
    MBeanServer server = createMock(MBeanServer.class);
    String attrs[] = new String[] {"attr0","atrr1","attr2"};
    String vals[]  = new String[] {"val0", "val1", "val2"};
    prepareMBeanInfos(server, testBeanName, attrs);
    for (int i=0;i<attrs.length;i++) {
        expect(server.getAttribute(testBeanName,attrs[i])).andReturn(vals[i]);
    }
    replay(server);
    Map res = (Map) handler.handleRequest(getMBeanServerManager(server),request);
    verify(server);
    for (int i=0;i<attrs.length;i++) {
        assertEquals(vals[i],res.get(attrs[i]));
    }
}