### Question:
Generator { @SuppressWarnings("null") public static void main(final String[] args) throws IOException { if (args.length == 0 || args[0] == null || args[0].length() == 0) trapPrintUsage(); String prefix = ""; File destDir = null; File schemaFile = null; for (int i = 0; i < args.length; ++i) { if ("--prefix".equals(args[i])) prefix = args[++i]; else if ("-d".equals(args[i])) destDir = new File(args[++i]).getAbsoluteFile(); else schemaFile = new File(args[i]).getAbsoluteFile(); } if (schemaFile == null) trapPrintUsage(); SchemaElement.parse(schemaFile.toURI().toURL(), prefix).toSource(destDir); } private  Generator(); @SuppressWarnings("null") static void main(final String[] args);  }### Answer:
@Test public void testUsage() throws IOException { try { Generator.main(new String[0]); fail("Expected SecurityException"); } catch (final SecurityException e) { } }
@Test public void test() throws IOException { Generator.main(new String[] {"--prefix", "org.jsonx.invoice", "-d", destDir.getAbsolutePath(), getFile("account.jsdx").getAbsolutePath()}); }