Header Command

TODO

Should fail if header is missing

Given there is resource at /hello
And it responds with no header Content-Type
When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:header name="Content-Type">text/html</rest:header>
</rest:request>		
		
Then it should produce following output:
/hello text/html (not set)

Should fail if header does not match

Given there is resource at /hello
And it responds with header Content-Type set to application/json
When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:header name="Content-Type">text/html</rest:header>
</rest:request>		
		
Then it should produce following output:
/hello text/html application/json

Should be successful if header matches

Given there is resource at /hello
And it responds with header Content-Type set to text/html
When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:header name="Content-Type">text/html</rest:header>
</rest:request>		
		
Then it should produce following output:
/hello text/html