@Test
public void returnsNullIfAttributeDoesNotExist() throws Exception {

    ObjectName objectName = new ObjectName("java.lang:type=ClassLoading");
    JmxAttributeGauge gauge = new JmxAttributeGauge(mBeanServer, objectName, "DoesNotExist");
    assertThat(gauge.getValue()).isNull();
}