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