### Question:
ConstantIndicator extends AbstractIndicator<T> { public ConstantIndicator(BarSeries series, T t) { super(series); this.value = t; } ConstantIndicator(BarSeries series, T t); @Override T getValue(int index); @Override String toString();  }### Answer:
@Test public void constantIndicator() { assertNumEquals("30.33", constantIndicator.getValue(0)); assertNumEquals("30.33", constantIndicator.getValue(1)); assertNumEquals("30.33", constantIndicator.getValue(10)); assertNumEquals("30.33", constantIndicator.getValue(30)); }