         
         viewModel.completion = { result in
             switch result {
-            case .share(let latitude, let longitude):
-                XCTAssertEqual(latitude, viewModel.context.viewState.userAnnotation?.coordinate.latitude)
-                XCTAssertEqual(longitude, viewModel.context.viewState.userAnnotation?.coordinate.longitude)
+            case .share(let latitude, let longitude, let coordinateType):
+                XCTAssertEqual(latitude, viewModel.context.viewState.sharedAnnotation?.coordinate.latitude)
+                XCTAssertEqual(longitude, viewModel.context.viewState.sharedAnnotation?.coordinate.longitude)
+                XCTAssertEqual(coordinateType, viewModel.context.viewState.sharedAnnotation?.coordinateType)
                 expectation.fulfill()
             case .cancel:
                 XCTFail()

        }
        
        XCTAssertNil(viewModel.context.viewState.bindings.userLocation)
        XCTAssertNotNil(viewModel.context.viewState.userAnnotation)
        
        viewModel.context.send(viewAction: .share)
        

    private func buildViewModel(withLocation: Bool) -> LocationSharingViewModel {
        LocationSharingViewModel(mapStyleURL: URL(string: "http://empty.com")!,
                                 avatarData: AvatarInput(mxContentUri: "", matrixItemId: "", displayName: ""),
                                 location: (withLocation ? CLLocationCoordinate2D(latitude: 51.4932641, longitude: -0.257096) : nil), coordinateType: .generic)
    }
}
