import junit.framework.*; public class ExampleTest extends TestCase { public void testTail() { Example example = new Example(); String s = example.tail("steal"); assertEquals("teal", s); } public static Test suite() { return new TestSuite(ExampleTest.class); } public static void main(String args[]) { junit.textui.TestRunner.run(suite()); } }