@Test
public void returnsNullIfObjectNamePatternAmbiguous() throws Exception {

    ObjectName objectName = new ObjectName("JmxAttributeGaugeTest:type=test,*");
    JmxAttributeGauge gauge = new JmxAttributeGauge(mBeanServer, objectName, "Value");
    assertThat(gauge.getValue()).isNull();
}