@Test
public void resolveLastTypeParameterWhenParameterizedSubtype() throws Exception {

  Type context =
      LastTypeParameter.class.getDeclaredField("PARAMETERIZED_DECODER_LIST_STRING")
          .getGenericType();
  Type listStringType = LastTypeParameter.class.getDeclaredField("LIST_STRING").getGenericType();
  Type last = resolveLastTypeParameter(context, ParameterizedDecoder.class);
  assertEquals(listStringType, last);
}