### Question:
TreeBuilderFactoryImpl implements TreeBuilderFactory { @Override public <E, N extends OpenNode<E, N>> SortedTreeBuilder<E, N> sortedTreeBuilder(Comparator<E> comparator, SortingAlgorithm algorithm) { throw new UnsupportedOperationException("Sorting algorithms not yet implemented"); } TreeBuilderFactoryImpl(KeyMappingProvider keyMappingProvider, TreeConstructorProvider treeConstructorProvider, EmptyTreeConstructorProvider emptyTreeConstructorProvider, TreeConverterProvider treeConverterProvider, EmptySortedTreeConstructorProviderImpl emptySortedTreeConstructorProvider); @SuppressWarnings("unchecked") @Override TopDownTreeRootBuilder<E, N> topDownBuilder(); @SuppressWarnings("unchecked") @Override BottomUpTreeBuilder<E, N> bottomUpBuilder(); @Override SortingTreeBuilder<E, N> sortingTreeBuilder(Comparator<E> comparator); @Override SortingTreeBuilder<E, N> sortingTreeBuilder(); @Override SortedTreeBuilder<E, N> sortedTreeBuilder(Comparator<E> comparator, SortingAlgorithm algorithm); @Override SortedTreeBuilder<E, N> sortedTreeBuilder(SortingAlgorithm algorithm); @SuppressWarnings("unchecked") @Override T copy(T tree); @Override T2 copy(Tree<E, N> tree, Class<T2> klass);  }### Answer:
@Test(expected = UnsupportedOperationException.class) public void testSortedTreeBuilder() { final SortedTreeBuilder<String, MutableSettableStructuredNode<String>> builder = trees.treeBuilders() .sortedTreeBuilder(ComparableComparator.get(), new SortingAlgorithm() { }); }
@Test(expected = UnsupportedOperationException.class) public void testComparableSortedTreeBuilder() { final SortedTreeBuilder<Integer, MutableSettableStructuredNode<Integer>> builder = trees.treeBuilders() .sortedTreeBuilder(new SortingAlgorithm() { }); }