@Test
 public void testDetermineTypeVariableAssignments()
     throws SecurityException, NoSuchFieldException, NoSuchMethodException {
   final ParameterizedType iterableType =
       (ParameterizedType) getClass().getField("iterable").getGenericType();
   final Map<TypeVariable<?>, Type> typeVarAssigns =
       TypeUtils.determineTypeArguments(TreeSet.class, iterableType);
   final TypeVariable<?> treeSetTypeVar = TreeSet.class.getTypeParameters()[0];
   Assert.assertTrue(typeVarAssigns.containsKey(treeSetTypeVar));
   Assert.assertEquals(
       iterableType.getActualTypeArguments()[0], typeVarAssigns.get(treeSetTypeVar));
 }