### Question:
B2TypeResolver { public Type getType() { return type; } B2TypeResolver(Class<?> clazz);  B2TypeResolver(Class<?> clazz, Type[] actualTypeArgumentsOrNull); Type getType(); Type resolveType(Field field);  }### Answer:
@Test public void testGetType() { { final Type resolvedType = resolverWithoutTypeArguments.getType(); assertTrue(resolvedType instanceof Class); assertEquals(TestClassWithoutTypeArguments.class, resolvedType); } { final Type resolvedType = resolverWithTypeArguments.getType(); assertTrue(resolvedType instanceof B2TypeResolver.ResolvedParameterizedType); final ParameterizedType resolvedParameterizedType = (ParameterizedType) resolvedType; assertEquals(TestClassWithTypeArguments.class, resolvedParameterizedType.getRawType()); assertArrayEquals( new Type[]{String.class, Integer.class}, resolvedParameterizedType.getActualTypeArguments()); } }