CreateSnapshotBridgeResult extends BaseDTO { public static CreateSnapshotBridgeResult deserialize(String bridgeResult) { JaxbJsonSerializer<CreateSnapshotBridgeResult> serializer = new JaxbJsonSerializer<>(CreateSnapshotBridgeResult.class); try { return serializer.deserialize(bridgeResult); } catch (IOException e) { throw new SnapshotDataException( "Unable to create task result due to: " + e.getMessage()); } } CreateSnapshotBridgeResult();  CreateSnapshotBridgeResult(String snapshotId, SnapshotStatus status); String getSnapshotId(); void setSnapshotId(String snapshotId); SnapshotStatus getStatus(); void setStatus(SnapshotStatus status); String serialize(); static CreateSnapshotBridgeResult deserialize(String bridgeResult);  }
@Test public void testDeserialize() { String resultSerialized = "{\"snapshotId\" : \"snapshot-id\"," + "\"status\":\"" + SnapshotStatus.INITIALIZED + "\"}"; CreateSnapshotBridgeResult bridgeResult = CreateSnapshotBridgeResult.deserialize(resultSerialized); assertEquals("snapshot-id", bridgeResult.getSnapshotId()); assertEquals(SnapshotStatus.INITIALIZED, bridgeResult.getStatus()); }