### Question:
RootNode extends BasicTreeNode { @Override public boolean hasInterestIn(char value, SearchContext context) { throw new IllegalAccessError("This is the root node"); }  @Override char getNodeValue(); @Override boolean isRoot(); @Override boolean hasInterestIn(char value, SearchContext context); @Override void setSibling(TreeNode sibling); @Override void setParent(TreeNode parent);  }### Answer:
@Test(expectedExceptions = IllegalAccessError.class) public void hasInterestInDisabled() { rootTreeNode.hasInterestIn('a', mock(SearchContext.class)); }