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