@Test(expectedExceptions = IllegalArgumentException.class,expectedExceptionsMessageRegExp = ".*Invalid pattern.*")
public void invalidPattern() {

    OptionsAndArgs o = opts("start", "i+*");
    o.getProcessPattern();
}