CompleteCancelSnapshotTaskResult extends BaseDTO { public static CompleteCancelSnapshotTaskResult deserialize(String taskResult) { JaxbJsonSerializer<CompleteCancelSnapshotTaskResult> serializer = new JaxbJsonSerializer<>(CompleteCancelSnapshotTaskResult.class); try { return serializer.deserialize(taskResult); } catch (IOException e) { throw new SnapshotDataException( "Unable to create task result due to: " + e.getMessage()); } } CompleteCancelSnapshotTaskResult();  CompleteCancelSnapshotTaskResult(String result); String getResult(); void setResult(String result); String serialize(); static CompleteCancelSnapshotTaskResult deserialize(String taskResult);  }
@Test public void testDeserialize() { String taskParamsSerialized = "{\"result\" : \"" + String.valueOf(resultValue) + "\"}"; CompleteCancelSnapshotTaskResult taskResult = CompleteCancelSnapshotTaskResult.deserialize(taskParamsSerialized); assertEquals(resultValue, taskResult.getResult()); }