assertThat(action.getType(), is(ActionType.GET));
assertThat(action.getDescription(), is("retrieve media"));
//action headers
assertThat(action.getHeaders().size(), is(1));
Header apiKeyHeader = action.getHeaders().get("api-key");
assertThat(apiKeyHeader.getDisplayName(), is("Api key"));
assertThat(apiKeyHeader.getDescription(), is("Api key description"));
assertThat(apiKeyHeader.getType(), is(STRING));
assertThat(apiKeyHeader.isRequired(), is(true));
assertThat(apiKeyHeader.getMinLength(), is(10));
assertThat(apiKeyHeader.getMaxLength(), is(10));
assertThat(apiKeyHeader.getExample(), is("0123456789"));
//action query parameters
assertThat(action.getQueryParameters().size(), is(1));
QueryParameter pageQueryParam = action.getQueryParameters().get("page");
assertThat(pageQueryParam.getType(), is(INTEGER));