### Question:
PageRewriteRule implements PageStructureRewriteRule { @Override public int getRanking() { return this.ranking; }  @Override boolean matches(Node root); @Override Node applyTo(Node root, Set<Node> finalNodes); @Override String getStaticTemplate(); @Override int getRanking();  }### Answer:
@Test public void testRanking() throws Exception { ServiceReference ref = bundleContext.getServiceReference(StructureRewriteRule.class.getName()); StructureRewriteRule rule = bundleContext.<StructureRewriteRule>getService(ref); assertEquals(1, rule.getRanking()); }