XML response Command

TODO

Should fail if response body is missing

Given there is resource at /hello
And it responds with no body When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:xmlResponse><greeting>Hello, World!</greeting></rest:xmlResponse>
</rest:request>		
		
Then it should produce following output:
/hello
<greeting>Hello, World!</greeting>

(not set)

Should fail if response body does not match

Given there is resource at /hello
And it responds with body
<greeting>Hello, You!</greeting>

When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:xmlResponse><greeting>Hello, World!</greeting></rest:xmlResponse>
</rest:request>		
		
Then it should produce following output:
/hello
<greeting>Hello, World!</greeting>

<greeting>Hello, You!</greeting>

Should be successful if body matches

Given there is resource at /hello
And it responds with body
<greeting>Hello, World!</greeting>

When following fixture is executed:
<rest:request>
	<rest:get>/hello</rest:get>
	<rest:xmlResponse><greeting>Hello, World!</greeting></rest:xmlResponse>
</rest:request>		
		
Then it should produce following output:
/hello
<greeting>Hello, World!</greeting>