AcceptorPathMatcher { public static boolean path(JsonNode expectedResult, JsonNode finalResult) { return finalResult.equals(expectedResult); }  static boolean pathAll(JsonNode expectedResult, JsonNode finalResult); static boolean pathAny(JsonNode expectedResult, JsonNode finalResult); static boolean path(JsonNode expectedResult, JsonNode finalResult);  }
@Test public void pathMatcher_ValidFinalResult() throws Exception { JsonNode expectedResult = mapper.readTree("\"ACTIVE\""); Assert.assertTrue("Expected result not equals final result", new AcceptorPathMatcher().path(expectedResult, mapper.readTree("\"ACTIVE\""))); }
@Test public void pathMatcher_BooleanFinalResult() throws Exception{ JsonNode expectedResultBoolean = mapper.readTree("true"); Assert.assertTrue("Expected result not equals final result", new AcceptorPathMatcher().path(expectedResultBoolean, BooleanNode.TRUE)); }
@Test public void pathMatcher_NullFinalResult() throws Exception{ JsonNode expectedResult = mapper.readTree("\"ACTIVE\""); Assert.assertFalse("Expected result not equals final result", new AcceptorPathMatcher().path(expectedResult, NullNode.getInstance())); }