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

    addServiceAndVersion();
    addObservationValues();
    addNewFoiValues();
    //
    parameters.removeParameterShell(INSERT_OBSERVATION_NEW_FOI_POSITION_SRS);
    parameters.addParameterShell(INSERT_OBSERVATION_NEW_FOI_POSITION_SRS, "4326");
    String insertObservation = builder.buildInsertObservationRequest(parameters);
    SFSpatialSamplingFeatureType feature = SFSpatialSamplingFeatureDocument.Factory.parse(
            InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation()
            .getObservationArray(0)
            .getOMObservation()
            .getFeatureOfInterest()
            .xmlText())
            .getSFSpatialSamplingFeature();
    assertThat(
        ((PointType)feature.getShape().getAbstractGeometry()).getPos().getSrsName(),
        is("http://www.opengis.net/def/crs/EPSG/0/4326"));
    parameters.removeParameterShell(INSERT_OBSERVATION_NEW_FOI_POSITION_SRS);
    parameters.addParameterShell(INSERT_OBSERVATION_NEW_FOI_POSITION_SRS,
            "http://www.opengis.net/def/crs/EPSG/0/4326");
    insertObservation = builder.buildInsertObservationRequest(parameters);
    feature = SFSpatialSamplingFeatureDocument.Factory.parse(
            InsertObservationDocument.Factory.parse(insertObservation)
            .getInsertObservation()
            .getObservationArray(0)
            .getOMObservation()
            .getFeatureOfInterest()
            .xmlText())
            .getSFSpatialSamplingFeature();
    assertThat(
            ((PointType)feature.getShape().getAbstractGeometry()).getPos().getSrsName(),
            is("http://www.opengis.net/def/crs/EPSG/0/4326"));
}