@Test
public void testGetAttribute() throws MBeanException, AttributeNotFoundException, ReflectionException {

    Object attribute = jmx.getAttribute("crm.op2");
    assertThat(attribute, notNullValue());
    assertThat(attribute.toString(), is("10/70"));
    try {
        jmx.getAttribute("something");
        fail("there is no attribute with specified key");
    } catch (AttributeNotFoundException ex) {
        // it's OK
    }
}