@Test
public void singleBeanSingleAttribute() throws Exception {

    JmxReadRequest request = new JmxRequestBuilder(READ, testBeanName.getCanonicalName()).
            attribute("testAttribute").
            build();
    MBeanServerConnection connection = createMock(MBeanServerConnection.class);
    expect(connection.getAttribute(testBeanName,"testAttribute")).andReturn("testValue");
    replay(connection);
    Object res = handler.handleRequest(connection,request);
    verify(connection);
    assertEquals("testValue",res);
}