BgReading implements DataPointWithLabelInterface { public BgReading value(double value) { this.value = value; return this; } BgReading();  BgReading(NSSgv sgv); Double valueToUnits(String units); String valueToUnitsToString(String units); String directionToSymbol(); @Override String toString(); boolean isDataChanging(BgReading other); boolean isEqual(BgReading other); void copyFrom(BgReading other); BgReading date(long date); BgReading date(Date date); BgReading value(double value); @Override double getX(); @Override double getY(); @Override void setY(double y); @Override String getLabel(); @Override long getDuration(); @Override PointsWithLabelGraphSeries.Shape getShape(); @Override float getSize(); @Override int getColor(); int getPredectionColor(); @DatabaseField(id = true)
    public long date; @DatabaseField
    public boolean isValid; @DatabaseField
    public double value; @DatabaseField
    public String direction; @DatabaseField
    public double raw; @DatabaseField
    public int source; @DatabaseField
    public String _id; public boolean isCOBPrediction; public boolean isaCOBPrediction; public boolean isIOBPrediction; public boolean isUAMPrediction; public boolean isZTPrediction; }
@Test public void valueTest() { bgReading = new BgReading(); double valueToSet = 81; assertEquals(81d, bgReading.value(valueToSet).value, 0.01d); }