+
+ assertEquals(400, post(uri, MediaType.APPLICATION_JSON, ""));
+ }
+
+ private void mockInvokeRpc(final CompositeNode result, final boolean sucessful, final Collection<RpcError> errors) {
+
+ final DummyRpcResult.Builder<CompositeNode> builder = new DummyRpcResult.Builder<CompositeNode>().result(result)
+ .isSuccessful(sucessful);
+ if (!errors.isEmpty()) {
+ builder.errors(errors);
+ }
+ final RpcResult<CompositeNode> rpcResult = builder.build();
+// when(brokerFacade.invokeRpc(any(QName.class), any(CompositeNode.class))).thenReturn(
+// Futures.<RpcResult<CompositeNode>> immediateFuture(rpcResult));