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