RadixTree extends BinarySearchTree<Bit, RadixTreeNode> { @Override public void setRoot(RadixTreeNode root) { throw new UnsupportedOperationException(); } RadixTree(); RadixTreeNode insert(int number); List<RadixTreeNode> insert(int... numbers); List<Integer> list(); RadixTreeNode find(int number); void delete(int number); @Override void setRoot(RadixTreeNode root); @Override RadixTreeNode getRoot(); @Override RadixTreeNode insert(Bit value); @Override RadixTreeNode delete(Bit value);  }
@Test(expectedExceptions = UnsupportedOperationException.class) public void testRootModification() throws Exception { new RadixTree().setRoot(new RadixTreeNode()); }