### 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("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 { File folder = prepareFS(); repository = engine.getRepository(repositoryName); session = repository.login("default"); Node root = session.getRootNode(); assert root != null; String workspaceName = session.getWorkspace().getName(); System.out.println("Found the root node in the \"" + workspaceName + "\" workspace"); Node rootFolder = session.getNode("/rootFolder"); System.out.println("/rootFolder (projection root)"); NodeIterator childIterator = rootFolder.getNodes(); while (childIterator.hasNext()) { Node child = childIterator.nextNode(); String primaryType = child.getPrimaryNodeType().getName(); System.out.println("+---> " + child.getName() + " (" + primaryType + ")"); child.addMixin("file:anyProperties"); child.setProperty("customProperty", "custom value"); } session.save(); System.out.println( "Stored some custom properties in json files, checkout the " + folder.getAbsolutePath() + " folder"); } catch (Exception 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); }