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