// Path: src/main/java/org/ominidi/Application.java
// @SpringBootApplication
// public class Application {
//     public static void main(String[] args) throws Exception {
//         SpringApplication.run(Application.class, args);
//     }
// }
// 
// Path: src/main/java/org/ominidi/web/viewmodel/SeoViewModel.java
// @Getter
// @Setter
// @NoArgsConstructor
// public class SeoViewModel {
//     public Map<String, Page> pages = new HashMap<>();
// 
//     public SeoViewModel(@NonNull Map<String, SeoViewModel.Page> pages) {
//        this.pages = pages;
//     }
// 
//     @Getter
//     @Setter
//     @NoArgsConstructor
//     @AllArgsConstructor
//     public static class Page {
//         private String title;
//         private String description;
// 
//         @JsonProperty("og_url")
//         private String ogUrl;
// 
//         @JsonProperty("og_image")
//         private String ogImage;
//     }
// }


import org.junit.Test;
import org.junit.runner.RunWith;
import org.ominidi.Application;
import org.ominidi.web.viewmodel.SeoViewModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.*;

package org.ominidi.web.factory;



@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
@ActiveProfiles(value = "test")
public class SeoViewModelFactoryTest {
    private String path = "fixtures/seo.yml";

    @Autowired
    private SeoViewModelFactory seoViewModelFactory;

    @Test
    public void itShouldCreateASeoViewModel() throws IOException {
        SeoViewModel seoViewModel = seoViewModelFactory.getViewModel(path);

        assertNotNull(seoViewModel);
        assertEquals(2, seoViewModel.getPages().size());
    }

    @Test()

// Path: src/main/java/org/ominidi/Application.java
// @SpringBootApplication
// public class Application {
//     public static void main(String[] args) throws Exception {
//         SpringApplication.run(Application.class, args);
//     }
// }
// 
// Path: src/main/java/org/ominidi/web/viewmodel/SeoViewModel.java
// @Getter
// @Setter
// @NoArgsConstructor
// public class SeoViewModel {
//     public Map<String, Page> pages = new HashMap<>();
// 
//     public SeoViewModel(@NonNull Map<String, SeoViewModel.Page> pages) {
//        this.pages = pages;
//     }
// 
//     @Getter
//     @Setter
//     @NoArgsConstructor
//     @AllArgsConstructor
//     public static class Page {
//         private String title;
//         private String description;
// 
//         @JsonProperty("og_url")
//         private String ogUrl;
// 
//         @JsonProperty("og_image")
//         private String ogImage;
//     }
// }


// Path: src/test/java/org/ominidi/web/factory/SeoViewModelFactoryTest.java
import org.junit.Test;
import org.junit.runner.RunWith;
import org.ominidi.Application;
import org.ominidi.web.viewmodel.SeoViewModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;
import java.io.FileNotFoundException;
import java.io.IOException;
import static org.junit.Assert.*;

package org.ominidi.web.factory;



@RunWith(SpringRunner.class)
@SpringBootTest(classes = Application.class)
@ActiveProfiles(value = "test")
public class SeoViewModelFactoryTest {
    private String path = "fixtures/seo.yml";

    @Autowired
    private SeoViewModelFactory seoViewModelFactory;

    @Test
    public void itShouldCreateASeoViewModel() throws IOException {
        SeoViewModel seoViewModel = seoViewModelFactory.getViewModel(path);

        assertNotNull(seoViewModel);
        assertEquals(2, seoViewModel.getPages().size());
    }

    @Test()

    public void itShouldThrowAnIOExceptionIfTheFileIsNotFound() {
