// Path: core/src/main/java/me/gregorias/dfuntest/CommandException.java
// @SuppressWarnings("unused")
// public class CommandException extends Exception {
//   private static final long serialVersionUID = 1L;
// 
//   public CommandException() {
//     super();
//   }
// 
//   public CommandException(String message, Throwable cause,
//       boolean enableSuppression, boolean writableStackTrace) {
//     super(message, cause, enableSuppression, writableStackTrace);
//   }
// 
//   public CommandException(String message, Throwable cause) {
//     super(message, cause);
//   }
// 
//   public CommandException(String message) {
//     super(message);
//   }
// 
//   public CommandException(Throwable cause) {
//     super(cause);
//   }
// }
// 
// Path: core/src/main/java/me/gregorias/dfuntest/TestResult.java
// public class TestResult {
//   private final Type mType;
//   private final String mDescription;
// 
//   public enum Type {
//     SUCCESS, FAILURE
//   }
// 
//   public TestResult(Type type, String description) {
//     mType = type;
//     mDescription = description;
//   }
// 
//   public String getDescription() {
//     return mDescription;
//   }
// 
//   public Type getType() {
//     return mType;
//   }
// }


import me.gregorias.dfuntest.CommandException;
import me.gregorias.dfuntest.TestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
package me.gregorias.dfuntest.example;



/**
 * This test script tests whether all applications send their id to initial application.
 */
public class ExampleDistributedPingTestScript extends AbstractExampleTestScript {
  private static final Logger LOGGER = LoggerFactory.getLogger(
      ExampleDistributedPingTestScript.class);

  @Override
  public TestResult run(Collection<ExampleApp> apps) {
    List<ExampleApp> appList = new ArrayList<>(apps);
    Set<Integer> expectedIDs = new HashSet<>();
    TestResult result = new TestResult(TestResult.Type.SUCCESS, "Test was successful.");

    try {
      startUpApps(apps);
// Path: core/src/main/java/me/gregorias/dfuntest/CommandException.java
// @SuppressWarnings("unused")
// public class CommandException extends Exception {
//   private static final long serialVersionUID = 1L;
// 
//   public CommandException() {
//     super();
//   }
// 
//   public CommandException(String message, Throwable cause,
//       boolean enableSuppression, boolean writableStackTrace) {
//     super(message, cause, enableSuppression, writableStackTrace);
//   }
// 
//   public CommandException(String message, Throwable cause) {
//     super(message, cause);
//   }
// 
//   public CommandException(String message) {
//     super(message);
//   }
// 
//   public CommandException(Throwable cause) {
//     super(cause);
//   }
// }
// 
// Path: core/src/main/java/me/gregorias/dfuntest/TestResult.java
// public class TestResult {
//   private final Type mType;
//   private final String mDescription;
// 
//   public enum Type {
//     SUCCESS, FAILURE
//   }
// 
//   public TestResult(Type type, String description) {
//     mType = type;
//     mDescription = description;
//   }
// 
//   public String getDescription() {
//     return mDescription;
//   }
// 
//   public Type getType() {
//     return mType;
//   }
// }


// Path: example/src/main/java/me/gregorias/dfuntest/example/ExampleDistributedPingTestScript.java
import me.gregorias.dfuntest.CommandException;
import me.gregorias.dfuntest.TestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

package me.gregorias.dfuntest.example;



/**
 * This test script tests whether all applications send their id to initial application.
 */
public class ExampleDistributedPingTestScript extends AbstractExampleTestScript {
  private static final Logger LOGGER = LoggerFactory.getLogger(
      ExampleDistributedPingTestScript.class);

  @Override
  public TestResult run(Collection<ExampleApp> apps) {
    List<ExampleApp> appList = new ArrayList<>(apps);
    Set<Integer> expectedIDs = new HashSet<>();
    TestResult result = new TestResult(TestResult.Type.SUCCESS, "Test was successful.");

    try {
      startUpApps(apps);
    } catch (CommandException | IOException e) {