GetSignedUrlTaskResult { public static GetSignedUrlTaskResult deserialize(String taskResult) { JaxbJsonSerializer<GetSignedUrlTaskResult> serializer = new JaxbJsonSerializer<>(GetSignedUrlTaskResult.class); try { return serializer.deserialize(taskResult); } catch (IOException e) { throw new TaskDataException( "Unable to create task result due to: " + e.getMessage()); } } GetSignedUrlTaskResult();  GetSignedUrlTaskResult(String signedUrl); String getSignedUrl(); void setSignedUrl(String signedUrl); String serialize(); static GetSignedUrlTaskResult deserialize(String taskResult);  }
@Test public void testDeserialize() { String resultSerialized = "{\"signedUrl\" : \"" + signedUrl + "\"}"; GetSignedUrlTaskResult taskResult = GetSignedUrlTaskResult.deserialize(resultSerialized); assertEquals(signedUrl, taskResult.getSignedUrl()); }