@Test
public void test_4() 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", null));
    try
    {
        swaggerGenMojo.execute();
        fail();
    }
    catch (Exception e)
    {
        assertEquals(MojoExecutionException.class, e.getClass());
        assertEquals("Invalid scheme specified: null", e.getMessage());
    }
}