OptionsLoader { private OptionsLoader() { } private  OptionsLoader(); static MeshOptions createOrloadOptions(String... args); static MeshOptions createOrloadOptions(MeshOptions defaultOption, String... args); static MeshOptions generateDefaultConfig(MeshOptions defaultOption); static ObjectMapper getYAMLMapper();  }
@Test public void testOptionsLoader() { File confFile = new File(CONFIG_FOLDERNAME + "/" + MESH_CONF_FILENAME); if (confFile.exists()) { confFile.delete(); } MeshOptions options = OptionsLoader.createOrloadOptions(); assertNotNull(options); assertTrue("The file should have been created.", confFile.exists()); assertNotNull("A keystore password should have been generated.", options.getAuthenticationOptions().getKeystorePassword()); assertNotNull("The node name should have been generated.", options.getNodeName()); }