@Test
public void testMultipleSubjects() throws Exception {

    //adapted from govdocs1 303710.txt
    String s = "From: Shawn Jones [chiroshawn@yahoo.com]\n" +
            "Subject: 2006N-3502\n" +
            "Subject: I Urge You to Require Notice of Mercury";
    Parser p = new RFC822Parser();
    Metadata m = new Metadata();
    p.parse(TikaInputStream.get(s.getBytes(StandardCharsets.UTF_8)), new DefaultHandler(), m, new ParseContext());
    assertEquals("I Urge You to Require Notice of Mercury", m.get(TikaCoreProperties.TITLE));
}