@Test public void testShouldReturnTypeWhenItIsGivenWhileObjectCreation() {

  // given
  TypeToken<Boolean> typeToken = new TypeToken<Boolean>() {
  };
  // when
  Type type = typeToken.getType();
  // then
  assertThat(type).isEqualTo(Boolean.class);
}