### Question:
TypeReference { public static TypeReference newTypeArgumentReference(final int sort, final int argIndex) { return new TypeReference((sort << 24) | argIndex); } TypeReference(final int typeRef); static TypeReference newTypeReference(final int sort); static TypeReference newTypeParameterReference(final int sort, final int paramIndex); static TypeReference newTypeParameterBoundReference(
      final int sort, final int paramIndex, final int boundIndex); static TypeReference newSuperTypeReference(final int itfIndex); static TypeReference newFormalParameterReference(final int paramIndex); static TypeReference newExceptionReference(final int exceptionIndex); static TypeReference newTryCatchReference(final int tryCatchBlockIndex); static TypeReference newTypeArgumentReference(final int sort, final int argIndex); int getSort(); int getTypeParameterIndex(); int getTypeParameterBoundIndex(); int getSuperTypeIndex(); int getFormalParameterIndex(); int getExceptionIndex(); int getTryCatchBlockIndex(); int getTypeArgumentIndex(); int getValue(); static final int CLASS_TYPE_PARAMETER; static final int METHOD_TYPE_PARAMETER; static final int CLASS_EXTENDS; static final int CLASS_TYPE_PARAMETER_BOUND; static final int METHOD_TYPE_PARAMETER_BOUND; static final int FIELD; static final int METHOD_RETURN; static final int METHOD_RECEIVER; static final int METHOD_FORMAL_PARAMETER; static final int THROWS; static final int LOCAL_VARIABLE; static final int RESOURCE_VARIABLE; static final int EXCEPTION_PARAMETER; static final int INSTANCEOF; static final int NEW; static final int CONSTRUCTOR_REFERENCE; static final int METHOD_REFERENCE; static final int CAST; static final int CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT; static final int METHOD_INVOCATION_TYPE_ARGUMENT; static final int CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT; static final int METHOD_REFERENCE_TYPE_ARGUMENT; }### Answer:
@Test public void testNewTypeArgumentReference() { TypeReference typeReference = TypeReference.newTypeArgumentReference(TypeReference.CAST, 3); assertEquals(TypeReference.CAST, typeReference.getSort()); assertEquals(3, typeReference.getTypeArgumentIndex()); }