             
             expectationForTest.fulfill()
         }
+        
         XCTAssertNotNil(session1)
         
         session1.session = stubbedSession

        let expectationForTest = expectation(description: "test")
        let configuration = NetworkConfiguration(host: "http://api.timezonedb.com/")
        let parameters = ["key": "1S2RMN6YBMYA", "country": "GB", "format": "json"]
        // Execute and test
        let session1 = HTTPSession(
            requestURLPath: "/v2/list-time-zone",
            httpMethod: .get,
            parameters: parameters,
            configuration: configuration!
        ) { (response, result, error, cancelled) in
                                    
            XCTAssertNil(error)
            
            // TODO: Automatic JSON parsing was removed from the library, due to incompatibility with our project.
            //       Result is returned as Data. Will fix once we get highlights running
            
//            let resultDictionary = result as! Data
//            let zones = resultDictionary["zones"] as! [[String: Any]]
//            let firstZone = zones.first!
//            XCTAssertEqual(firstZone["countryCode"] as! String, "GB")
            
            expectationForTest.fulfill()
        }
        XCTAssertNotNil(session1)
        session1.configuration = configuration!
        
        do {

@testable import MDCNetworking

class SessionTests: XCTestCase {

    func testInitialising() {
    
        // Test with default GET method
        let configuration = NetworkConfiguration(host: "http://api.timezonedb.com/")
        let session1 = HTTPSession(
            urlPath: "https://somehost",
            configuration: configuration!
        ) { _, _, _, _ in }
        
        XCTAssertNotNil(session1)
        
        guard case .get = session1.request.method else {
            XCTAssert(false, "error")
            return
        }
