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