### Question:
ImmutableQuality implements Quality { @Override public String toString() { return this.weight+" ["+this.type+"]"; } private  ImmutableQuality(double value, Type type); @Override Type type(); @Override double weight(); @Override int compareTo(Quality that); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }### Answer:
@Test public void speculativeQualityHasCustomToStringRepresentation() { assertThat(VALUE.toString(),equalTo("0.123 [SPECULATIVE]")); }
@Test public void definiteQualityHasCustomToStringRepresentation() { assertThat(DIFFERENT.toString(),equalTo("0.001 [DEFINITE]")); }