UpdateSnapshotHistoryBridgeResult extends BaseDTO { public static UpdateSnapshotHistoryBridgeResult deserialize(String bridgeResult) { JaxbJsonSerializer<UpdateSnapshotHistoryBridgeResult> serializer = new JaxbJsonSerializer<>(UpdateSnapshotHistoryBridgeResult.class); try { return serializer.deserialize(bridgeResult); } catch (IOException e) { throw new SnapshotDataException( "Unable to deserialize result due to: " + e.getMessage()); } } UpdateSnapshotHistoryBridgeResult();  UpdateSnapshotHistoryBridgeResult(SnapshotSummary snapshot,
                                             String history); SnapshotSummary getSnapshot(); void setSnapshot(SnapshotSummary snapshot); String getHistory(); void setHistory(String history); String serialize(); static UpdateSnapshotHistoryBridgeResult deserialize(String bridgeResult);  }
@Test public void testDeSerialize() { SnapshotStatus status = SnapshotStatus.INITIALIZED; String str = "{ \"snapshot\" : " + "{ \"status\" : \"" + status + "\"," + " \"description\" : \"" + description + "\"," + " \"snapshotId\" : \"" + snapshotId + "\"}, " + " \"history\" : \"" + history + "\"}"; System.out.println(str); UpdateSnapshotHistoryBridgeResult result = UpdateSnapshotHistoryBridgeResult.deserialize(str); SnapshotSummary snapshotSummary = result.getSnapshot(); Assert.assertEquals(snapshotId, snapshotSummary.getSnapshotId()); Assert.assertEquals(status, snapshotSummary.getStatus()); Assert.assertEquals(description, snapshotSummary.getDescription()); Assert.assertEquals(history, result.getHistory()); }