@Test
public void testDefaultConfigException() throws Exception {

    //default xml parser will throw TikaException
    //this and TestConfig() are broken into separate tests so that
    //setUp and tearDown() are called each time
    String[] params = {resourcePrefix + "bad_xml.xml"};
    boolean tikaEx = false;
    try {
        TikaCLI.main(params);
    } catch (TikaException e) {
        tikaEx = true;
    }
    assertTrue(tikaEx);
}