final Collection<ParsedOperationRequestHeader> headers = handler.getHeaders();
assertEquals(2, headers.size());
final Iterator<ParsedOperationRequestHeader> i = headers.iterator();
ParsedOperationRequestHeader header = i.next();
assertEquals("name1", header.getName());
ModelNode node = new ModelNode();
node.get("name1").set("value1");
ModelNode headersNode = new ModelNode();
header.addTo(ctx, headersNode);
assertEquals(node, headersNode);
header = i.next();
assertEquals("name2", header.getName());
node = new ModelNode();
node.get("name2").set("value2");
headersNode = new ModelNode();
header.addTo(ctx, headersNode);
assertEquals(node, headersNode);
}