@Test
public void mainArgs()
{

    assertNull(MyMain.args);
    CDILauncher.main(new String[]{
            "--openwebbeans.main", MyMain.class.getName(),
            "--openwebbeans.disableDiscovery", "true",
            "--openwebbeans.classes", MyMain.class.getName(),
            "--other", "yes",
            "and", "args"
    });
    assertArrayEquals(new String[]{
            "--other", "yes",
            "and", "args"
    }, MyMain.args);
}