ShareGlucoseRecord { public Double slopePerMsFromDirection() { final String slope_name = slopeDirection(); return slope_name == null ? null : BgReading.slopefromName(slope_name); }  String slopeDirection(); Double slopePerMsFromDirection(); Long getTimestamp(); String toS(); @Expose
    public String DT; @Expose
    public String ST; @Expose
    public String WT; @Expose
    public double Trend; @Expose
    public double Value; public long timestamp; }
@Test public void slopePerMsFromDirectionTest() { for (int direction = 1; direction < 8; direction++) { final ShareGlucoseRecord record = new ShareGlucoseRecord(); record.Trend = direction; assertWithMessage("Slope check " + direction).that(BgReading.slopeName(record.slopePerMsFromDirection() * 60000)).isEqualTo(record.slopeDirection()); } }