@Test
public void applyDefault()
{
Resource simpleResource = raml.getResources().get("/simple");
assertThat(simpleResource.getActions().size(), is(4));
Map<String, MimeType> getBody = simpleResource.getAction(ActionType.GET).getBody();
assertThat(getBody, nullValue());
Map<String, MimeType> getResponseBody = simpleResource.getAction(ActionType.GET).getResponses().get("200").getBody();
assertThat(getResponseBody.size(), is(1));
assertThat(getResponseBody.containsKey("application/json"), is(true));
Map<String, MimeType> postBody = simpleResource.getAction(ActionType.POST).getBody();
assertThat(postBody.size(), is(1));
assertThat(postBody.containsKey("application/json"), is(true));
Map<String, MimeType> putBody = simpleResource.getAction(PUT).getBody();
assertThat(putBody.size(), is(1));
assertThat(putBody.containsKey("application/json"), is(true));
Map<String, MimeType> deleteBody = simpleResource.getAction(ActionType.DELETE).getResponses().get("204").getBody();
assertThat(deleteBody, nullValue());
}