### Question:
BasicMeanDifference extends AbstractBasicRelativeEffect<ContinuousMeasurement> { @Override public Double getError() { return Math.sqrt(square(d_subject.getStdDev()) / (double) d_subject.getSampleSize() + square(d_baseline.getStdDev()) / (double) d_baseline.getSampleSize()); } BasicMeanDifference(ContinuousMeasurement baseline, ContinuousMeasurement subject); @Override Double getError(); String getName(); Distribution getDistribution(); @Override AxisType getAxisType();  }### Answer:
@Test public void testGetError() { double expected = Math.sqrt(square(s_stdDev1) / (double) s_subjSize + square(s_stdDev2) / (double) s_baslSize); assertEquals(expected, d_md.getError(),0.0001); }
@Test public void testGetCI() { double t = StudentTTable.getT(s_subjSize + s_baslSize - 2); double upper = d_md.getConfidenceInterval().getPointEstimate() + t*d_md.getError(); double lower = d_md.getConfidenceInterval().getPointEstimate() - t*d_md.getError(); assertEquals(upper, d_md.getConfidenceInterval().getUpperBound(), 0.0001); assertEquals(lower, d_md.getConfidenceInterval().getLowerBound(), 0.0001); }