NodeUtil { @Deprecated public static boolean isOriginalURI(Node node, String uri) { if (node.getUri().equals(uri)) { return true; } if (node.hasProperty(APM_ORIGINAL_URI)) { return node.getProperties(APM_ORIGINAL_URI).iterator().next().getValue().equals(uri); } return false; }  @Deprecated static boolean isURIRewritten(Node node); @Deprecated static void rewriteURI(Node node, String uri); @Deprecated static boolean isOriginalURI(Node node, String uri); static boolean rewriteURI(Node node); static List<T> findNodes(List<Node> nodes, Class<T> cls); @SuppressWarnings("unchecked") static void findNodes(List<Node> nodes, Class<T> cls, List<T> results);  }
@Test public void testIsOriginalURINotRewritten() { Consumer consumer = new Consumer(); consumer.setUri(ORIGINAL_URI); assertTrue(NodeUtil.isOriginalURI(consumer, ORIGINAL_URI)); }