7891011121314151617
public class HashTest extends TestCase { public void testEscape(){ Hash h = new Hash("key","<&>"); assertEquals(" key=\"<&>\"", h.asCharSequence()); } public void testFail(){ try { new Hash("key"); fail("should raise ex");