     @objc func context(context: AppContext, didChangeNetworkStatus status: String) {
         networkStatusUpdated = true
         networkStatus = status
-        
+
         bluetoothStateActual = nil
         bluetoothLowEnergyStateActual = nil
         wifiStateActual = nil
         cellularStateActual = nil
-        
+
         if let dictinaryNetworkStatus = dictionaryValue(networkStatus!) {
-            
+
             guard
                 let bluetoothState =
                 dictinaryNetworkStatus[NetworkStatusParameters.bluetooth.rawValue]

        validateAdvertisingUpdate(delegateMock.advertisingListeningState, advertising: false,
                                  browsing: true)
    }
    
    func testStartAdvertisingAndListeningInvokePeerAvailabilityChangedForDifferentContexts() {
        do {
            let foundPeerFromAnotherContextExpectation =

        return (try? NSJSONSerialization.JSONObjectWithData(data, options: [])) as?
            [String : AnyObject]
    }

    // MARK: Tests

    private func validateAdvertisingUpdate(jsonString: String, advertising: Bool, browsing: Bool) {
        let json = jsonDictionaryFrom(jsonString)
        let listeningActive = (json?[JSONKey.discoveryActive.rawValue] as? Bool)
