public void includeSequence()
{
String ramlSource = "org/raml/include/include-sequence.yaml";
List<ValidationResult> validationResults = validateRaml(ramlSource);
assertThat(validationResults.size(), is(0));
Raml raml = parseRaml(ramlSource);
assertThat(raml.getResources().get("/main").getAction(POST).getBody().get("application/json").getSchema(), is("main"));
assertThat(raml.getSchemas().get(0).get("main"), containsString("employeeId"));
assertThat(raml.getResource("/main").getAction(GET).getQueryParameters().size(), is(2));
assertThat(raml.getResource("/main").getAction(GET).getQueryParameters().get("offset").getType(), is(INTEGER));
assertThat(raml.getResource("/main").getAction(GET).getQueryParameters().get("limit").getType(), is(INTEGER));
assertThat(raml.getResource("/main").getAction(GET).getHeaders().get("security").getType(), is(BOOLEAN));
assertThat(raml.getResource("/main").getAction(PUT).getResponses().containsKey("204"), is(true));
assertThat(raml.getResource("/main").getAction(PUT).getBody().containsKey("text/xml"), is(true));
}