### Question:
ModeShapeExample { public static void main( String[] argv ) { ModeShapeEngine engine = new ModeShapeEngine(); engine.start(); Repository repository = null; String repositoryName = null; try { URL url = ModeShapeExample.class.getClassLoader().getResource("my-repository-config.json"); RepositoryConfiguration config = RepositoryConfiguration.read(url); Problems problems = config.validate(); if (problems.hasErrors()) { System.err.println("Problems starting the engine."); System.err.println(problems); System.exit(-1); } repository = engine.deploy(config); repositoryName = config.getName(); } catch (Throwable e) { e.printStackTrace(); System.exit(-1); return; } Session session = null; try { repository = engine.getRepository(repositoryName); session = repository.login("default"); Node root = session.getRootNode(); assert root != null; System.out.println("Found the root node in the \"" + session.getWorkspace().getName() + "\" workspace"); } catch (RepositoryException e) { e.printStackTrace(); } finally { if (session != null) session.logout(); System.out.println("Shutting down engine ..."); try { engine.shutdown().get(); System.out.println("Success!"); } catch (Exception e) { e.printStackTrace(); } } }  static void main( String[] argv );  }### Answer:
@Test public void shouldRunApplication() throws Exception { String[] argv = new String[]{}; ModeShapeExample.main(argv); }