package recursion; import static recursion.TailCalls.done; import org.junit.Test; public class TailCallTest { @Test(expected = UnsupportedOperationException.class) public void tailCallDoesNotSupportResult() { TailCall tailCall = new TailCall() { @Override public TailCall apply() { return null; } }; tailCall.result(); } @Test(expected = UnsupportedOperationException.class) public void doneDoesNotSupportApply() { done(null).apply(); } @Test public void TailCallsCoverage() { new TailCalls(); } }