BasicParameter implements NetworkParameter, Comparable<BasicParameter> { public String getName() { return "d." + d_base.getId() + "." + d_subj.getId(); } BasicParameter(Treatment base, Treatment subj); String getName(); Treatment getBaseline(); Treatment getSubject(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); int compareTo(BasicParameter other);  }
@Test public void testGetName() { Treatment t1 = new Treatment("A_1"); Treatment t2 = new Treatment("B52"); assertEquals("d.A_1.B52", new BasicParameter(t1, t2).getName()); }