JMXLocationResolver implements LocationResolver<JMXNodeLocation> { @Override public boolean isMultiTarget(JMXNodeLocation location) { return location.getObjectName().isPattern(); }  @Override JMXNodeLocation buildLocation(String path); @Override String findWildcardMatch(JMXNodeLocation multiTargetLocation, JMXNodeLocation singleLocation); @Override boolean isMultiTarget(JMXNodeLocation location); @Override JMXNodeLocation absolutize(JMXNodeLocation base, JMXNodeLocation location); @Override boolean isParent(JMXNodeLocation parent, JMXNodeLocation child); @Override boolean matches(JMXNodeLocation query, JMXNodeLocation location); @Override String applyTemplate(String nameTemplate, JMXNodeLocation location, String endpointName);  }
@Test public void testIsMultiTarget() throws Exception { JMXLocationResolver resolver = new JMXLocationResolver(); Assert.assertFalse(resolver.isMultiTarget(new JMXNodeLocation("domain:one=1,two=2,three=3"))); Assert.assertTrue(resolver.isMultiTarget(new JMXNodeLocation("domain:one=*,two=2,three=3"))); Assert.assertTrue(resolver.isMultiTarget(new JMXNodeLocation("domain:one=1,two=*,three=3"))); Assert.assertTrue(resolver.isMultiTarget(new JMXNodeLocation("domain:one=1,two=2,three=*"))); }