    @Test
    public void testRailsGoatControllerParser() {

        File f = new File (TestConstants.RAILSGOAT_SOURCE_LOCATION);

        assert f.exists() : "Source code location does not exist. " + TestConstants.RAILSGOAT_SOURCE_LOCATION;
        assert f.isDirectory() : "Source code location is not folder. " + TestConstants.RAILSGOAT_SOURCE_LOCATION;

        // System.err.println("parsing "+f.getAbsolutePath() );
        RailsEndpointMappings mappings = new RailsEndpointMappings(f);
        //  System.err.println(System.lineSeparator() + "Parse done." + System.lineSeparator());

        List<Endpoint> endpoints = mappings.generateEndpoints();

        assert !endpoints.isEmpty() : "Got empty endpoints for " + TestConstants.RAILSGOAT_SOURCE_LOCATION;

        Endpoint testEndpoint = new RailsEndpoint(
                "/app/controllers/password_resets_controller.rb",   // filePath
                "/password_resets",                                 // urlPath
                "POST",
                map("confirm_password", RouteParameter.fromDataType("confirm_password", ParameterDataType.STRING),
                        "password", RouteParameter.fromDataType("password", ParameterDataType.STRING),
                        "user", RouteParameter.fromDataType("user", ParameterDataType.STRING))
            );

        confirmEndpointExistsIn(testEndpoint, endpoints);

    }