CheckpointProperties implements Serializable { public boolean isSavepoint() { return savepoint; } CheckpointProperties(
			boolean forced,
			boolean externalize,
			boolean savepoint,
			boolean discardSubsumed,
			boolean discardFinished,
			boolean discardCancelled,
			boolean discardFailed,
			boolean discardSuspended); boolean isSavepoint(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static CheckpointProperties forStandardSavepoint(); static CheckpointProperties forStandardCheckpoint(); static CheckpointProperties forExternalizedCheckpoint(boolean deleteOnCancellation);  }
@Test public void testIsSavepoint() throws Exception { { CheckpointProperties props = CheckpointProperties.forStandardCheckpoint(); assertFalse(props.isSavepoint()); } { CheckpointProperties props = CheckpointProperties.forExternalizedCheckpoint(true); assertFalse(props.isSavepoint()); } { CheckpointProperties props = CheckpointProperties.forExternalizedCheckpoint(false); assertFalse(props.isSavepoint()); } { CheckpointProperties props = CheckpointProperties.forStandardSavepoint(); assertTrue(props.isSavepoint()); CheckpointProperties deserializedCheckpointProperties = InstantiationUtil.deserializeObject( InstantiationUtil.serializeObject(props), getClass().getClassLoader()); assertTrue(deserializedCheckpointProperties.isSavepoint()); } }