### Question:
Trapezoid extends TransferFunction implements Serializable { @Override public double getOutput(double net) { if ((net >= leftHigh) && (net <= rightHigh)) { return 1d; } else if ((net > leftLow) && (net < leftHigh)) { return (net - leftLow) / (leftHigh - leftLow); } else if ((net > rightHigh) && (net < rightLow)) { return (rightLow - net) / (rightLow - rightHigh); } return 0d; } Trapezoid();  Trapezoid(double leftLow, double leftHigh, double rightLow, double rightHigh);  Trapezoid(NeurophProperties properties); @Override double getOutput(double net); void setLeftLow(double leftLow); void setLeftHigh(double leftHigh); void setRightLow(double rightLow); void setRightHigh(double rightHigh); double getLeftLow(); double getLeftHigh(); double getRightLow(); double getRightHigh();  }### Answer:
@Test public void testGetOutput() { double result = instance.getOutput(net); assertEquals(expected, result, 0.0); }