TreatmentOverride implements Named { public String getName() { return name; } TreatmentOverride(String name, FilterExpression filter, Treatment treatment); String getName(); FilterExpression getFilter(); Treatment getTreatment(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testValidName() throws ValidationException { String name = "a_valid_name"; final TreatmentOverride override = new TreatmentOverride(name, mock(FilterExpression.class),treatment); assertEquals(override.getName(), name); }