@Test
public void test_1() throws Exception
{

    File tempDir = Files.createTempDir();
    String outputFileName = "swagger.yaml";
    SwaggerGenMojo swaggerGenMojo = new SwaggerGenMojo();
    ReflectionTestUtils.setField(swaggerGenMojo, "outputDirectory", tempDir);
    ReflectionTestUtils.setField(swaggerGenMojo, "outputFilename", outputFileName);
    ReflectionTestUtils.setField(swaggerGenMojo, "restJavaPackage", "org.finra.herd.swaggergen.test.swaggerGenMojo.rest");
    ReflectionTestUtils.setField(swaggerGenMojo, "modelJavaPackage", "org.finra.herd.swaggergen.test.swaggerGenMojo.model");
    ReflectionTestUtils.setField(swaggerGenMojo, "modelErrorClassName", "ErrorResponse");
    ReflectionTestUtils.setField(swaggerGenMojo, "tagPatternParameter", "(?<tag>.+?)RestController");
    ReflectionTestUtils.setField(swaggerGenMojo, "title", "test_title");
    ReflectionTestUtils.setField(swaggerGenMojo, "version", "test_version");
    ReflectionTestUtils.setField(swaggerGenMojo, "basePath", "/test_basePath");
    ReflectionTestUtils.setField(swaggerGenMojo, "schemeParameters", Arrays.asList("http", "https"));
    swaggerGenMojo.execute();
    assertEquals(getResourceAsString("/yaml4.yaml"), getFileAsString(Paths.get(tempDir.getAbsolutePath(), outputFileName)));
}