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