HttpURLConnection connection = getRestTestHelper().openManagementConnection("/rest/binding/test/amq.direct/queue/" + bindingName, "PUT");
connection.connect();
getRestTestHelper().writeJsonRequest(connection, bindingData);
int responseCode = connection.getResponseCode();
connection.disconnect();
assertEquals("Unexpected response code", 201, responseCode);
Map<String, Object> binding = getRestTestHelper().getJsonAsSingletonList("/rest/binding/test/amq.direct/queue/" + bindingName);
Asserts.assertBinding(bindingName, "queue", "amq.direct", binding);
}