// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_DAY =
//         new TimeFrame(ofStartDateTimeAndEndDateTime(
//                 LocalDate.of(2015, OCTOBER, 21).atStartOfDay(PT).toOffsetDateTime(),
//                 LocalDate.of(2015, OCTOBER, 22).atStartOfDay(PT).toOffsetDateTime()
//         ));
// 
// 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()
//         ));


import org.testng.annotations.Test;
import java.math.BigDecimal;
import static java.math.BigDecimal.TEN;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.MEDIAN;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_DAY;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_MONTH;
        assertThat(stepCount.getStepCount(), equalTo(TEN));
        assertThat(stepCount.getEffectiveTimeFrame(), nullValue());
        assertThat(stepCount.getDescriptiveStatistic(), nullValue());
        assertThat(stepCount.getUserNotes(), nullValue());
    }

    @Test
    public void buildShouldConstructMeasureUsingOptionalProperties() {

        StepCount1 stepCount = new StepCount1.Builder(TEN)
                .setEffectiveTimeFrame(FIXED_MONTH)
                .setUserNotes("feeling fine")
                .build();

        assertThat(stepCount, notNullValue());
        assertThat(stepCount.getStepCount(), equalTo(TEN));
        assertThat(stepCount.getEffectiveTimeFrame(), equalTo(FIXED_MONTH));
        assertThat(stepCount.getDescriptiveStatistic(), nullValue());
        assertThat(stepCount.getUserNotes(), equalTo("feeling fine"));
    }

    @Override
    protected String getSchemaFilename() {
        return SCHEMA_FILENAME;
    }

    @Test
    public void measureShouldSerializeCorrectly() throws Exception {

        StepCount1 stepCount = new StepCount1.Builder(BigDecimal.valueOf(6000))
// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
// public static final TimeFrame FIXED_DAY =
//         new TimeFrame(ofStartDateTimeAndEndDateTime(
//                 LocalDate.of(2015, OCTOBER, 21).atStartOfDay(PT).toOffsetDateTime(),
//                 LocalDate.of(2015, OCTOBER, 22).atStartOfDay(PT).toOffsetDateTime()
//         ));
// 
// 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/StepCount1UnitTests.java
import org.testng.annotations.Test;
import java.math.BigDecimal;
import static java.math.BigDecimal.TEN;
import static org.hamcrest.CoreMatchers.*;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.openmhealth.schema.domain.omh.DescriptiveStatistic.MEDIAN;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_DAY;
import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_MONTH;

        assertThat(stepCount.getStepCount(), equalTo(TEN));
        assertThat(stepCount.getEffectiveTimeFrame(), nullValue());
        assertThat(stepCount.getDescriptiveStatistic(), nullValue());
        assertThat(stepCount.getUserNotes(), nullValue());
    }

    @Test
    public void buildShouldConstructMeasureUsingOptionalProperties() {

        StepCount1 stepCount = new StepCount1.Builder(TEN)
                .setEffectiveTimeFrame(FIXED_MONTH)
                .setUserNotes("feeling fine")
                .build();

        assertThat(stepCount, notNullValue());
        assertThat(stepCount.getStepCount(), equalTo(TEN));
        assertThat(stepCount.getEffectiveTimeFrame(), equalTo(FIXED_MONTH));
        assertThat(stepCount.getDescriptiveStatistic(), nullValue());
        assertThat(stepCount.getUserNotes(), equalTo("feeling fine"));
    }

    @Override
    protected String getSchemaFilename() {
        return SCHEMA_FILENAME;
    }

    @Test
    public void measureShouldSerializeCorrectly() throws Exception {

        StepCount1 stepCount = new StepCount1.Builder(BigDecimal.valueOf(6000))
                .setEffectiveTimeFrame(FIXED_DAY)