CancelSnapshotBridgeResult extends BaseDTO { public static CancelSnapshotBridgeResult deserialize(String bridgeResult) { JaxbJsonSerializer<CancelSnapshotBridgeResult> serializer = new JaxbJsonSerializer<>(CancelSnapshotBridgeResult.class); try { return serializer.deserialize(bridgeResult); } catch (IOException e) { throw new SnapshotDataException( "Unable to deserialize result due to: " + e.getMessage()); } } CancelSnapshotBridgeResult();  CancelSnapshotBridgeResult(SnapshotStatus status,
                                      String details); SnapshotStatus getStatus(); void setStatus(SnapshotStatus status); String getDetails(); void setDetails(String details); static CancelSnapshotBridgeResult deserialize(String bridgeResult);  }
@Test public void testDeserialize() { SnapshotStatus status = SnapshotStatus.CANCELLED; String details = "details"; String str = "{ \"status\" : \"" + status + "\"," + " \"details\" : \"" + details + "\"}"; CancelSnapshotBridgeResult params = CancelSnapshotBridgeResult.deserialize(str); Assert.assertEquals(status, params.getStatus()); Assert.assertEquals(details, params.getDetails()); }