// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_MONTH =
//         new TimeFrame(ofStartDateTimeAndEndDateTime(
//                 LocalDate.of(2015, OCTOBER, 1).atStartOfDay(PT).toOffsetDateTime(),
//                 LocalDate.of(2015, NOVEMBER, 1).atStartOfDay(PT).toOffsetDateTime()
//         ));
// 
// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_POINT_IN_TIME =
//         new TimeFrame(ZonedDateTime.of(2015, OCTOBER.getValue(), 21, 16, 29, 0, 0, PT).toOffsetDateTime());


import org.testng.annotations.Test;
import java.math.BigDecimal;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.AVERAGE;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.MINIMUM;
import static org.openmhealth.schema.domain.omh.MassUnit.KILOGRAM;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_MONTH;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_POINT_IN_TIME;
        assertThat(bodyWeight.getBodyWeight(), equalTo(massUnitValue));
        assertThat(bodyWeight.getEffectiveTimeFrame(), nullValue());
        assertThat(bodyWeight.getDescriptiveStatistic(), nullValue());
        assertThat(bodyWeight.getUserNotes(), nullValue());
    }

    @Test
    public void buildShouldConstructMeasureUsingTimeIntervalTimeFrame() {

        MassUnitValue massUnitValue = new MassUnitValue(KILOGRAM, BigDecimal.valueOf(65));

        BodyWeight bodyWeight = new BodyWeight.Builder(massUnitValue)
                .setEffectiveTimeFrame(FIXED_MONTH)
                .setDescriptiveStatistic(AVERAGE)
                .setUserNotes("feeling fine")
                .build();

        assertThat(bodyWeight, notNullValue());
        assertThat(bodyWeight.getBodyWeight(), equalTo(massUnitValue));
        assertThat(bodyWeight.getEffectiveTimeFrame(), equalTo(FIXED_MONTH));
        assertThat(bodyWeight.getDescriptiveStatistic(), equalTo(AVERAGE));
        assertThat(bodyWeight.getUserNotes(), equalTo("feeling fine"));
    }

    @Test
    public void buildShouldConstructMeasureUsingDateTimeTimeFrame() {

        MassUnitValue massUnitValue = new MassUnitValue(KILOGRAM, BigDecimal.valueOf(65));

        BodyWeight bodyWeight = new BodyWeight.Builder(massUnitValue)
// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_MONTH =
//         new TimeFrame(ofStartDateTimeAndEndDateTime(
//                 LocalDate.of(2015, OCTOBER, 1).atStartOfDay(PT).toOffsetDateTime(),
//                 LocalDate.of(2015, NOVEMBER, 1).atStartOfDay(PT).toOffsetDateTime()
//         ));
// 
// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_POINT_IN_TIME =
//         new TimeFrame(ZonedDateTime.of(2015, OCTOBER.getValue(), 21, 16, 29, 0, 0, PT).toOffsetDateTime());


// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/BodyWeightUnitTests.java
import org.testng.annotations.Test;
import java.math.BigDecimal;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.AVERAGE;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.MINIMUM;
import static org.openmhealth.schema.domain.omh.MassUnit.KILOGRAM;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_MONTH;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_POINT_IN_TIME;

        assertThat(bodyWeight.getBodyWeight(), equalTo(massUnitValue));
        assertThat(bodyWeight.getEffectiveTimeFrame(), nullValue());
        assertThat(bodyWeight.getDescriptiveStatistic(), nullValue());
        assertThat(bodyWeight.getUserNotes(), nullValue());
    }

    @Test
    public void buildShouldConstructMeasureUsingTimeIntervalTimeFrame() {

        MassUnitValue massUnitValue = new MassUnitValue(KILOGRAM, BigDecimal.valueOf(65));

        BodyWeight bodyWeight = new BodyWeight.Builder(massUnitValue)
                .setEffectiveTimeFrame(FIXED_MONTH)
                .setDescriptiveStatistic(AVERAGE)
                .setUserNotes("feeling fine")
                .build();

        assertThat(bodyWeight, notNullValue());
        assertThat(bodyWeight.getBodyWeight(), equalTo(massUnitValue));
        assertThat(bodyWeight.getEffectiveTimeFrame(), equalTo(FIXED_MONTH));
        assertThat(bodyWeight.getDescriptiveStatistic(), equalTo(AVERAGE));
        assertThat(bodyWeight.getUserNotes(), equalTo("feeling fine"));
    }

    @Test
    public void buildShouldConstructMeasureUsingDateTimeTimeFrame() {

        MassUnitValue massUnitValue = new MassUnitValue(KILOGRAM, BigDecimal.valueOf(65));

        BodyWeight bodyWeight = new BodyWeight.Builder(massUnitValue)
                .setEffectiveTimeFrame(FIXED_POINT_IN_TIME)