@Test
public void lastTypeFromAnonymous() throws Exception {

  Parameterized<?> instance = new Parameterized<Reader>() {};
  Type last = resolveLastTypeParameter(instance.getClass(), Parameterized.class);
  assertEquals(Reader.class, last);
}