+ " \"outcome\" : \"failed\",\n"
+ " \"failure-description\" : \"No handler for add at address [\\n (\\\"host\\\" => \\\"local\\\"),\\n (\\\"server\\\" => \\\"server-demo\\\"),\\n (\\\"subsystem\\\" => \\\"jms\\\"),\\n (\\\"queue\\\" => \\\"flubbr\\\")\\n]\"\n"
+ " }\n" + " }\n" + " }\n" + " }\n" + " },\n"
+ " \"failure-description\" : \"Operation was not applied successfully to any servers\"\n" + "}";
ObjectMapper mapper = new ObjectMapper();
mapper.configure(SerializationConfig.Feature.INDENT_OUTPUT, true);
ComplexResult result = mapper.readValue(resultString, ComplexResult.class);
assertFalse(result.isSuccess(), "Result should be 'failed', but was not");
assertTrue(result.getFailureDescription().startsWith("Operation was not applied successfully to any servers"));