InconsistencyParameter implements NetworkParameter, Comparable<InconsistencyParameter> { public String getName() { return "w." + StringUtils.join(CollectionHelper.transform(d_cycle.subList(0, d_cycle.size() - 1), s_idTransformer), "."); } InconsistencyParameter(List<Treatment> cycle); String getName(); List<Treatment> getCycle(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); int compareTo(InconsistencyParameter other);  }
@Test public void testGetName() { List<Treatment> cycle = Arrays.asList(new Treatment("A"), new Treatment("B"), new Treatment("C"), new Treatment("A")); InconsistencyParameter parameter = new InconsistencyParameter(cycle); assertEquals("w.A.B.C", parameter.getName()); assertEquals(parameter.getName(), parameter.toString()); }