ConditionDeterminer { private static void sortSegments(final List<ConditionSegment> conditionSegments) { Collections.sort(conditionSegments, new Comparator<ConditionSegment>() { @Override public int compare(ConditionSegment o1, ConditionSegment o2) { if (o1.getOrder() != null) return o1.getOrder().compareTo(o2.getOrder()); return 0; } }); }  static boolean isConditionMet(List<ConditionSegment> conditionSegments); static void main(String[] args);  }
@Test public void testSortSegments() throws Exception { final List<ConditionSegment> conditionSegments; }