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