GetRestoreBridgeResult extends BaseDTO { public static GetRestoreBridgeResult deserialize(String bridgeResult) { JaxbJsonSerializer<GetRestoreBridgeResult> serializer = new JaxbJsonSerializer<>(GetRestoreBridgeResult.class); try { return serializer.deserialize(bridgeResult); } catch (IOException e) { throw new SnapshotDataException( "Unable to deserialize result due to: " + e.getMessage()); } }  String getRestoreId(); void setRestoreId(String restoreId); String getSnapshotId(); void setSnapshotId(String snapshotId); RestoreStatus getStatus(); void setStatus(RestoreStatus status); Date getStartDate(); void setStartDate(Date startDate); Date getEndDate(); void setEndDate(Date endDate); Date getExpirationDate(); void setExpirationDate(Date expirationDate); String getStatusText(); void setStatusText(String statusText); String getDestinationHost(); void setDestinationHost(String destinationHost); int getDestinationPort(); void setDestinationPort(int destinationPort); String getDestinationStoreId(); void setDestinationStoreId(String destinationStoreId); String getDestinationSpaceId(); void setDestinationSpaceId(String destinationSpaceId); static GetRestoreBridgeResult deserialize(String bridgeResult);  }
@Test public void testDeSerialize() { String str = "{ \"restoreId\": \"" + restoreId + "\"," + " \"snapshotId\" : \"" + snapshotId + "\"," + " \"startDate\" : \"" + startDate.getTime() + "\"," + " \"endDate\" : \"" + endDate.getTime() + "\"," + " \"expirationDate\" : \"" + expirationDate.getTime() + "\"," + " \"status\" : \"" + status + "\"," + " \"statusText\" : \"" + statusText + "\"," + " \"destinationHost\" : \"" + destinationHost + "\"," + " \"destinationPort\" : " + destinationPort + "," + " \"destinationStoreId\" : \"" + destinationStoreId + "\"," + " \"destinationSpaceId\" : \"" + destinationSpaceId + "\"" + "}"; GetRestoreBridgeResult params = GetRestoreBridgeResult .deserialize(str); assertEquals(restoreId, params.getRestoreId()); assertEquals(snapshotId, params.getSnapshotId()); assertEquals(status, params.getStatus()); assertEquals(startDate, params.getStartDate()); assertEquals(endDate, params.getEndDate()); assertEquals(expirationDate, params.getExpirationDate()); assertEquals(statusText, params.getStatusText()); assertEquals(destinationHost, params.getDestinationHost()); assertEquals(destinationPort, params.getDestinationPort()); assertEquals(destinationStoreId, params.getDestinationStoreId()); assertEquals(destinationSpaceId, params.getDestinationSpaceId()); }