@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());
    }
}