// Path: src/test/java/com/lassekoskela/maven/timeline/ObjectBuilder.java
// public static Goal goal(String name, long duration, long startTime, String... dependencies) {
// 	return new Goal(name, new Duration(duration), startTime, asList(dependencies));
// }
// 
// Path: src/main/java/com/lassekoskela/maven/timeline/GoalOrganizer.java
// @VisibleForTesting
// static class SortedGoal {
// 
// 	private final Project project;
// 	private final Phase phase;
// 	final Goal goal;
// 
// 	@VisibleForTesting
// 	SortedGoal(Project project, Phase phase, Goal goal) {
// 		this.project = project;
// 		this.phase = phase;
// 		this.goal = goal;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return Objects.hashCode(project, phase, goal);
// 	}
// 
// 	@Override
// 	public boolean equals(Object object) {
// 		if (object instanceof SortedGoal) {
// 			SortedGoal that = (SortedGoal) object;
// 			return Objects.equal(this.project, that.project) && Objects.equal(this.phase, that.phase)
// 					&& Objects.equal(this.goal, that.goal);
// 		}
// 		return false;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return Objects.toStringHelper(this).add("project", project).add("phase", phase).add("goal", goal)
// 				.toString();
// 	}
// }


import static com.lassekoskela.maven.timeline.ObjectBuilder.goal;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import java.util.Comparator;
import org.junit.Before;
import org.junit.Test;
import com.lassekoskela.maven.timeline.GoalOrganizer.SortedGoal;
package com.lassekoskela.maven.timeline;





public class GoalStartTimeComparatorTest {
	private Comparator<SortedGoal> comparator;

	@Before
	public void setUp() throws Exception {
		comparator = new GoalStartTimeComparator();
	}

// Path: src/test/java/com/lassekoskela/maven/timeline/ObjectBuilder.java
// public static Goal goal(String name, long duration, long startTime, String... dependencies) {
// 	return new Goal(name, new Duration(duration), startTime, asList(dependencies));
// }
// 
// Path: src/main/java/com/lassekoskela/maven/timeline/GoalOrganizer.java
// @VisibleForTesting
// static class SortedGoal {
// 
// 	private final Project project;
// 	private final Phase phase;
// 	final Goal goal;
// 
// 	@VisibleForTesting
// 	SortedGoal(Project project, Phase phase, Goal goal) {
// 		this.project = project;
// 		this.phase = phase;
// 		this.goal = goal;
// 	}
// 
// 	@Override
// 	public int hashCode() {
// 		return Objects.hashCode(project, phase, goal);
// 	}
// 
// 	@Override
// 	public boolean equals(Object object) {
// 		if (object instanceof SortedGoal) {
// 			SortedGoal that = (SortedGoal) object;
// 			return Objects.equal(this.project, that.project) && Objects.equal(this.phase, that.phase)
// 					&& Objects.equal(this.goal, that.goal);
// 		}
// 		return false;
// 	}
// 
// 	@Override
// 	public String toString() {
// 		return Objects.toStringHelper(this).add("project", project).add("phase", phase).add("goal", goal)
// 				.toString();
// 	}
// }


// Path: src/test/java/com/lassekoskela/maven/timeline/GoalStartTimeComparatorTest.java
import static com.lassekoskela.maven.timeline.ObjectBuilder.goal;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
import java.util.Comparator;
import org.junit.Before;
import org.junit.Test;
import com.lassekoskela.maven.timeline.GoalOrganizer.SortedGoal;

package com.lassekoskela.maven.timeline;





public class GoalStartTimeComparatorTest {
	private Comparator<SortedGoal> comparator;

	@Before
	public void setUp() throws Exception {
		comparator = new GoalStartTimeComparator();
	}

	private SortedGoal sortedGoal(long duration, long startTime) {