@Test
public void shouldNotThrowNPEWhileReceivingMissingContentsSection() throws OXFException {

    CapabilitiesDocument capabilitiesDoc = CapabilitiesDocument.Factory.newInstance();
    Capabilities capabilities = capabilitiesDoc.addNewCapabilities();
    ServiceIdentification serviceIdentification = capabilities.addNewServiceIdentification();
    serviceIdentification.addNewTitle().setStringValue("test-title");
    serviceIdentification.addNewServiceType().setStringValue("test-service-type");
    serviceIdentification.addNewAbstract();
    serviceIdentification.addNewServiceTypeVersion().setStringValue(SOS_VERSION);
    capabilities.setVersion(SOS_VERSION);
    capabilities.addNewOperationsMetadata();
    new SOSCapabilitiesMapper_100().mapCapabilities(capabilitiesDoc);
}