@Test
public void testFindWildcardMatch() throws Exception {

    DMRLocationResolver resolver = new DMRLocationResolver();
    String match = resolver.findWildcardMatch(DMRNodeLocation.of("/one=1/two=*"),
            DMRNodeLocation.of("/one=111/two=222"));
    Assert.assertEquals("222", match);
    try {
        match = resolver.findWildcardMatch(DMRNodeLocation.of("/one=1"), DMRNodeLocation.of("/one=111"));
        Assert.fail("Should not have matched: " + match);
    } catch (ProtocolException ok) {
    }
    try {
        match = resolver.findWildcardMatch(null, DMRNodeLocation.of("/one=111"));
        Assert.fail("Should not have matched: " + match);
    } catch (ProtocolException ok) {
    }
}