DMRLocationResolver implements LocationResolver<DMRNodeLocation> { @Override public boolean isMultiTarget(DMRNodeLocation location) { return location.getPathAddress().isMultiTarget(); }  @Override DMRNodeLocation buildLocation(String path); @Override String findWildcardMatch(DMRNodeLocation multiTargetLocation, DMRNodeLocation singleLocation); @Override boolean isMultiTarget(DMRNodeLocation location); @Override DMRNodeLocation absolutize(DMRNodeLocation base, DMRNodeLocation location); @Override boolean isParent(DMRNodeLocation parent, DMRNodeLocation child); @Override boolean matches(DMRNodeLocation query, DMRNodeLocation location); @Override String applyTemplate(String nameTemplate, DMRNodeLocation location, String endpointName);  }
@Test public void testIsMultiTarget() { DMRLocationResolver resolver = new DMRLocationResolver(); Assert.assertFalse(resolver.isMultiTarget(DMRNodeLocation.of("/one=1/two=2/three=3"))); Assert.assertTrue(resolver.isMultiTarget(DMRNodeLocation.of("/one=*/two=2/three=3"))); Assert.assertTrue(resolver.isMultiTarget(DMRNodeLocation.of("/one=1/two=*/three=3"))); Assert.assertTrue(resolver.isMultiTarget(DMRNodeLocation.of("/one=1/two=2/three=*"))); }