     
     private func givenSourceImage(ofSize size: CGSize) {
         let rect = CGRect(origin: .zero, size: size)
-        UIGraphicsBeginImageContextWithOptions(rect.size, false, 0.0)
+        UIGraphicsBeginImageContextWithOptions(rect.size, false, UIImageResizingTests.imageScale)
         UIColor.black.setFill()
         UIRectFill(rect)
         let image = UIGraphicsGetImageFromCurrentImageContext()

@testable import CountiesModel

final class UIImageResizingTests: XCTestCase {
    private var sourceImage: UIImage!
    private var resizedImage: UIImage!
    

        givenSourceImage(ofSize: CGSize(width: 300, height: 200))
        whenTheSourceImage(isResizedTo: CGSize(width: 200, height: 100))
        XCTAssertEqual(resizedImage.size.width, 200)
        XCTAssertEqual(resizedImage.size.height, 133.5)
    }
    
    func testItResizesALandscapeImageToAPortraitSizeAsExpected() {
