@Test
public void testRetainIncomingLanguage() throws Exception {

    final String test = "Simple Content";
    Metadata metadata = new Metadata();
    metadata.set(TikaCoreProperties.LANGUAGE, "en");
    parser.parse(
            new ByteArrayInputStream(test.getBytes(UTF_8)),
            new BodyContentHandler(), metadata, new ParseContext());
    assertEquals("en", metadata.get(TikaCoreProperties.LANGUAGE));
}