NonSelfRegisteringSettableValue extends AbstractMonitorable<T> { @Override public T get() { return value; } @SuppressWarnings({"unchecked", "PMD.ExcessiveParameterList"})  NonSelfRegisteringSettableValue(String name, String description, Unit<?> unit, T initialValue, ValueSemantics valueSemantics); @Override T get(); void set(T newValue);  }
@Test public void initialValueWillBeReturnedBeforeAnyChange() { assertThat(value.get(), is(INITIAL_VALUE)); }