@Test(expectedExceptions = AttributeNotFoundException.class)
public void singleBeanMultiAttributesWithAWrongAttributeNameThrowingException() throws Exception {

    JmxReadRequest request = new JmxRequestBuilder(READ, testBeanName.getCanonicalName()).
            attributes(Arrays.asList("attr0", "attr1")).
            option(ConfigKey.IGNORE_ERRORS, "false").
            build();
    MBeanServer server = createMock(MBeanServer.class);
    expect(server.isRegistered(testBeanName)).andStubReturn(true);
    expect(server.getAttribute(testBeanName,"attr0")).andReturn("val0");
    expect(server.getAttribute(testBeanName,"attr1")).andThrow(new AttributeNotFoundException("Couldn't find attr1"));
    replay(server);
    Map res = (Map) handler.handleRequest(getMBeanServerManager(server),request);
}