CheckpointOptions implements Serializable { public static CheckpointOptions forSavepoint(String targetDirectory) { checkNotNull(targetDirectory, "targetDirectory"); return new CheckpointOptions(CheckpointType.SAVEPOINT, targetDirectory); } private  CheckpointOptions(
			@Nonnull CheckpointType checkpointType,
			@Nullable  String targetLocation); @Nonnull CheckpointType getCheckpointType(); @Nullable String getTargetLocation(); @Override String toString(); static CheckpointOptions forCheckpoint(); static CheckpointOptions forSavepoint(String targetDirectory);  }
@Test(expected = NullPointerException.class) public void testSavepointNullCheck() throws Exception { CheckpointOptions.forSavepoint(null); }