RequestBuffer extends ByteArrayOutputStream { public static boolean isDiscardableChar(char b) { return b == ' ' || b == '\n' || b == '\r' || b == '\t'; }  static boolean isDiscardableChar(char b); boolean allDiscardableContent();  }
@Test public void spaceIsDiscardable() throws Exception { assertTrue(RequestBuffer.isDiscardableChar(' ')); }
@Test public void crIsDiscardable() throws Exception { assertTrue(RequestBuffer.isDiscardableChar('\r')); }
@Test public void lfIsDiscardable() throws Exception { assertTrue(RequestBuffer.isDiscardableChar('\n')); }
@Test public void tabIsDiscardable() throws Exception { assertTrue(RequestBuffer.isDiscardableChar('\t')); }
@Test public void regularCharIsNotDiscardable() throws Exception { assertFalse(RequestBuffer.isDiscardableChar('a')); }