### Question:
Defaults { public static Object defaultValue(final Class<?> type) { Object res = null; if (isBoolean(type)) { res = FALSE; } else if (isChar(type)) { res = '\u0000'; } else if (isByte(type) || isInt(type) || isShort(type)) { res = 0; } else if (isLong(type)) { res = 0L; } else if (isFloat(type)) { res = 0.0F; } else if (isDouble(type)) { res = 0.0D; } return res; }  static Object defaultValue(final Class<?> type);  }### Answer:
@Test(dataProvider = "dataProvider") public void testDefaultValueShouldReturnTheExpectedResult(final Class<?> type, final Object expectedResult) { final Object actual = underTest.defaultValue(type); assertThat(actual).isEqualTo(expectedResult); }