@Test
public void buildInsertObservation_should_add_parent_feature_as_sampled_feature()
        throws OXFException, XmlException {

    addServiceAndVersion();
    addObservationValues();
    addNewFoiValues();
    final String insertObservation = builder.buildInsertObservationRequest(parameters);
    FeaturePropertyType feature =
            SFSpatialSamplingFeatureDocument.Factory.parse(
                    InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation()
            .getObservationArray(0)
            .getOMObservation()
            .getFeatureOfInterest()
            .xmlText())
            .getSFSpatialSamplingFeature()
            .getSampledFeature();
    assertThat(feature.getHref(), is(newFoiParentFeatureId));
}