HeaderParser { public void parse(String s) { for (char c : s.toCharArray()) { state.read(c); } state.close(); } HeaderParser(); List<String> getItems(); void parse(String s);  }
@Test(expected = IllegalArgumentException.class) public void testParse_quotedNotClosed() throws Exception { parser.parse("aaa 'cc''c"); }
@Test(expected = IllegalArgumentException.class) public void testParse_quotedNotSeparated() throws Exception { parser.parse("aaa 'ccc'd eee"); }