public static <T> T defaultIfNull(final T object, final T defaultValue) {
		return isNull(object) ? defaultValue : object;
	}
@Test
	public void defaultIfNullTest() {
		final String nullValue = null;
		final String dateStr = "2020-10-23 15:12:30";
		Instant result1 = ObjectUtil.defaultIfNull(dateStr,
				(source) -> DateUtil.parse(source, DatePattern.NORM_DATETIME_PATTERN).toInstant(), Instant.now());
		assertNotNull(result1);
		Instant result2 = ObjectUtil.defaultIfNull(nullValue,
				(source) -> DateUtil.parse(source, DatePattern.NORM_DATETIME_PATTERN).toInstant(), Instant.now());
		assertNotNull(result2);

		Obj obj = new Obj();
		Obj objNull = null;
		String result3 = ObjectUtil.defaultIfNull(obj, (a) -> obj.doSomeThing(), "fail");
		assertNotNull(result3);

		String result4 = ObjectUtil.defaultIfNull(objNull, Obj::doSomeThing, "fail");
		assertNotNull(result4);
	}