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