executeLatch.countDown();
return new ModelNode();
}
};
// Set the handler
final ModelControllerClient client = setupTestClient(controller);
try {
ModelNode operation = new ModelNode();
operation.get("test").set("123");
ModelNode op = new ModelNode();
op.get("name").set(123);
OperationBuilder builder = new OperationBuilder(op);
builder.addInputStream(new ByteArrayInputStream(firstBytes));
builder.addInputStream(new ByteArrayInputStream(secondBytes));
builder.addInputStream(new ByteArrayInputStream(thirdBytes));
client.execute(builder.build());
executeLatch.await();
assertEquals(3, size.get());
assertArrays(firstBytes, firstResult.get());
assertArrays(secondBytes, secondResult.get());
assertArrays(new byte[] { 1 }, thirdResult.get());